mischief911
Technical User
This is a real newbie question
I have a form with 2 textboxes 1)start date 2) end Date for a report date range. A valid start and end date needs to be entered before the underlying report generation macro can function properly. I am trying to test for a valid date in each text box and throw up a msgbox in response to whichever textbox value is missing. I am looping through this test so that it will run until the proper data has been entered. The only problem is i can't get the msgbox dialog to close so that the focus can be returned to the appropriate start date/end date textbox for user input. It enters into an endless loop and won't let me close the msgbox dialog to input the dates.
I have a form with 2 textboxes 1)start date 2) end Date for a report date range. A valid start and end date needs to be entered before the underlying report generation macro can function properly. I am trying to test for a valid date in each text box and throw up a msgbox in response to whichever textbox value is missing. I am looping through this test so that it will run until the proper data has been entered. The only problem is i can't get the msgbox dialog to close so that the focus can be returned to the appropriate start date/end date textbox for user input. It enters into an endless loop and won't let me close the msgbox dialog to input the dates.