I have a Pop Up Form to enter a date range. I want the date range to come up blank so I'm doing the following
On load
Me.StartDate = ""
Me.EndDate = ""
If they enter an end date that is before the start date I want an error msg box to come up. I have the expression but don't know how to write it in VBA
=IIf([EndDate]<[StartDate],MsgBox("The Ending Date cannot be before the Begining Date",0,"ERROR"))
I want it to clear the end date field after the error message is closed. Don't know how to do that.
Then I will have a command button that will take them to the report.
On Click will be Me.Visible = False
The Report will close the pop up form.
A little help would be appreciated.