Form Does not show for data entry

djpearce

Bamedele
Local time
Today, 01:56
Joined
May 12, 2004
Messages
27
I designed an unbound form to accept a date input. The form is opened from VBA using docmd.openform. I want it to open, allow the user to key in a date, and click ok.

The form opens, but execution continues to the next lines of code. It does not stop to allow the user to enter the date.

I have compared the properties with another form that I created that behaves ok, and can not find where I and going wrong.

Please help.
 
Try opening the form in Dialog mode, which should pause the code until the form closes:

DoCmd.OpenForm "FormName", , , , , acDialog
 

Users who are viewing this thread

Back
Top Bottom