padlocked17
Registered User.
- Local time
- Yesterday, 23:49
- Joined
- Aug 29, 2007
- Messages
- 276
I have a form that's recourdsource lists all available classes and has a button that opens a "pop-up" modal form.
When a new class is added in the modal pop-up form, they click a "Save Button".
I want that button to essentially run the following command on the original form but I'm not sure how to get the pop-up modal form to search the form from which it originated.
'PotentialClassName' is the PK for the new record that was just created in the pop-up modal form.
When a new class is added in the modal pop-up form, they click a "Save Button".
I want that button to essentially run the following command on the original form but I'm not sure how to get the pop-up modal form to search the form from which it originated.
Code:
Forms!frmEnroll.DoCmd.SearchForRecord , "", acFirst, "[ClassID] = " & "'" & PotentialClassName & "'"
'PotentialClassName' is the PK for the new record that was just created in the pop-up modal form.