Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to include previous day date in query and get data ? I have one dtpicker name DtDate1 My current query is below.

SQL
RsIncome.Open " Select Sum(Amount) from Rojmel where IncExp = 'ytJtf' and Date1= #" & Format(DtDate1.Value, "MM/DD/yyyy") & "#", cn, adOpenDynamic, adLockOptimistic
Posted
Updated 30-Sep-15 20:02pm
v2

1 solution

use
VB
DtDate1.Value.AddDays(-1)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900