hi there,
I have the following statement:
=DSum("[HOURSBYTASK]","qyJobTracking","[TASKGROUP] = 'SOLIDBUILDER' and DENDEST BETWEEN #09/01/2002# AND #10/01/2002#"
This works great. If I replace the dates with forms!frmJobTracking!txtStart and forms!frmJobTracking!txtEnd I get an error. Ultimately, I would really like this in a query but I can't make it work in there either. It's not formatting the date correctly. I used this:
for the DENDEST field Between [forms]![frmJobTracking]![txtStart] And [forms]![frmJobTracking]![frmEnd]
The expresseion is typed incorrectly or is too complex to be evaluated, but if I put slashes between my dates, it works. I'm lost. Any help would be appreciated. Thanks.
P.S. Works with VBA though and the where condition in the open report command without formatting the date. Go figure.
I have the following statement:
=DSum("[HOURSBYTASK]","qyJobTracking","[TASKGROUP] = 'SOLIDBUILDER' and DENDEST BETWEEN #09/01/2002# AND #10/01/2002#"
This works great. If I replace the dates with forms!frmJobTracking!txtStart and forms!frmJobTracking!txtEnd I get an error. Ultimately, I would really like this in a query but I can't make it work in there either. It's not formatting the date correctly. I used this:
for the DENDEST field Between [forms]![frmJobTracking]![txtStart] And [forms]![frmJobTracking]![frmEnd]
The expresseion is typed incorrectly or is too complex to be evaluated, but if I put slashes between my dates, it works. I'm lost. Any help would be appreciated. Thanks.
P.S. Works with VBA though and the where condition in the open report command without formatting the date. Go figure.