NotAnExpert
Registered User.
- Local time
- Today, 05:07
- Joined
- Feb 3, 2017
- Messages
- 46
Hi, having sorted my previous issue with nz, I am now stuck trying a similar approach to dates.
I have my mainform, and a subform is updated with a button onclick event.
My mainform contains two textboxes which are formatted for dates and has datepickers etc.
My query runs ok using NZ but as before, I want this working via VBA and i'm not entirely sure why this isn't working.
The query SQL view is as follows and the subform running this query WORKS FINE:
Any assistance getting the syntax right on th VBA SQL version on this would be awesome.
Thank you again.
I have my mainform, and a subform is updated with a button onclick event.
My mainform contains two textboxes which are formatted for dates and has datepickers etc.
My query runs ok using NZ but as before, I want this working via VBA and i'm not entirely sure why this isn't working.
The query SQL view is as follows and the subform running this query WORKS FINE:
Code:
((qryTransactions.[Del dt])>=Nz([forms]![frmHistorical]![calDateFrom],"01/01/1901") And (qryTransactions.[Del dt])<=Nz([forms]![frmHistorical]![CalDateTo],Date()))
Any assistance getting the syntax right on th VBA SQL version on this would be awesome.
Thank you again.
Last edited: