I put this expression in the QBE grid’s criteria row of a select query.
What I’m trying to accomplish is have a query use for its criteria today’s date in other words I want the date the criteria uses to be dynamic.
This is the expression that produces the error.
=DLookUp("[Period]","tblDates","[ComboDt] = # Now () #")
If I write it this way:
=DLookUp("[Period]","tblDates","[ComboDt] = # 12/21/07 #")
No problem.
Can someone help provide the correct syntax to have the criteria based on the current day’s date return the proper records?
Thanks in advance.
What I’m trying to accomplish is have a query use for its criteria today’s date in other words I want the date the criteria uses to be dynamic.
This is the expression that produces the error.
=DLookUp("[Period]","tblDates","[ComboDt] = # Now () #")
If I write it this way:
=DLookUp("[Period]","tblDates","[ComboDt] = # 12/21/07 #")
No problem.
Can someone help provide the correct syntax to have the criteria based on the current day’s date return the proper records?
Thanks in advance.