psycoperl
Active Member
- Joined
- Oct 23, 2007
- Messages
- 339
- Office Version
- 365
- 2016
- Platform
- Windows
- MacOS
- Web
Is there a way from form1 to open form2 in Datasheet view and then when form2 is closed to continue processing in form1?
form2 is "frmStudentBatchLoad"
on Form1 I have
When I click on the button that triggers the code I do not get the form opened properly, and the MSGBox appears automatically.
form2 is "frmStudentBatchLoad"
on Form1 I have
Code:
Private Sub cmdOpenStagingArea_Click()
DoCmd.OpenForm "frmStudentBatchLoad", acFormDS, , , , acDialog
MsgBox DLookup("Count([Emplid])", "temptblStudentToLoad")
End Sub
When I click on the button that triggers the code I do not get the form opened properly, and the MSGBox appears automatically.