I am attempting to write an if statement something like this:
This is never evaluating to true because, as I see it, now() includes the date and time, and my field is a short date. So, I tried this:
When this runs I get a runtime error simply stating "Overflow".
Any ideas on how I can accomplish this? Thanks!
___________________________________________________________
With your thoughts you create the world--Shakyamuni Buddha
Code:
If DLookup("FridayDate", "qryGetFridayDate")=Now() then
do something.
This is never evaluating to true because, as I see it, now() includes the date and time, and my field is a short date. So, I tried this:
Code:
If DLookup("FridayDate", "qryGetFridayDate")=CVDate(format(Now(), mm/dd/yyyy)) then
do something.
When this runs I get a runtime error simply stating "Overflow".
Any ideas on how I can accomplish this? Thanks!
___________________________________________________________
With your thoughts you create the world--Shakyamuni Buddha