G
Guest
I have a module that contains all the code, nothing on the forms. In one function, I issue an OpenForm to open a single-control form that prompts for a year to be entered and press OK to close the form
DoCmd.OpenForm ("frmEnterYear"
strYear = [Forms]![frmEnterYear]![txtYear
The form gets opened and for some reason, execution of code continues to the next line without waiting for the user to press OK
I know it's something stupid but I can't seem to figure it out. Any thoughts
TIA, LenP
DoCmd.OpenForm ("frmEnterYear"
strYear = [Forms]![frmEnterYear]![txtYear
The form gets opened and for some reason, execution of code continues to the next line without waiting for the user to press OK
I know it's something stupid but I can't seem to figure it out. Any thoughts
TIA, LenP