I have two forms - Form1 and Form2. Form2 is defined with Popup and Modal properties set to Yes. When I use the following -
stDocName = "Form2"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Set rstIssues = CurrentDb.OpenRecordset("SELECT DISTINCT * FROM Issues WHERE TTP_No = " & lngSelectedTTP)
With rstIssues
Form2 is not displayed, and the Form1 code continues thru the Set and With. I thought if a Form2 is set to Modal/Popup, it would be displayed, and the code in Form1 would wait until Form2 is closed. Is that not the case? That is what I need it to do, because the field lngSelectedTTP is populated in Form2.
Sorry, this is Access 2007.