I have a form with a pop up calendar that fills cboDate1 and it works great. When I click the Save button, I run a query checking to see if a record was added yesterday Date()-"1". The query works great.
If a record is not found for yesterday, I display a message box saying a record was not entered on DateAdd("d", -1, Date). The problem is that Date in DateAdd takes on the value of whatever is in cboDate1, not today's date.
First, is DateAdd("d", -1, Date) what I want to use to display yesterday's date in my message box?
If so, how do I make Date = today's date regardless of what is in cboDate1?
Thanks,
Forrest
If a record is not found for yesterday, I display a message box saying a record was not entered on DateAdd("d", -1, Date). The problem is that Date in DateAdd takes on the value of whatever is in cboDate1, not today's date.
First, is DateAdd("d", -1, Date) what I want to use to display yesterday's date in my message box?
If so, how do I make Date = today's date regardless of what is in cboDate1?
Thanks,
Forrest