Hi,
I have a form named 'FJobOverview_QueryView' opens by VBA code. See beneath. However, the code opens the form and the code continues executing directly after DoCmd.OpenForm"FJobOverview_QueryView" without the from is closed. I want the code to stop so long the form is opened and then continue when the form is closed by the user manually clicks 'Close' in form. Is that possible?
(In Excel it's possible to use vbModeLess to not stop the code. I don't know how it works in Access. It's diiferent I can see)
Code:
Sub Test()
'...
DoCmd.OpenForm "FJobOverview_QueryView"
'Code contiunes here without I have closed the form above. Can I prevent that codes continues until form above is closed?
'...
End Sub