![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Greetings all, I am revisiting some sharp edges in a project I mostly completed last year. I thank you for any assistance you can provide a novice Access guy. First off, I want to have a popup form refresh the underlying record source in an already-open subform after a new record is entered (using the popup form). I have this working using Forms!MainForm! subForm.Form!Control.requery firing on the popup's On Close event. However, since the popup and its code can be called from different forms, I'd like to use OpenArgs to pass the calling form/subform/ control to the popup's On Close code. But simply passing "Forms! MainForm!subForm.Form!Control" as the OpenArgs text, then calling Me.OpenArgs.requery in the popup's event does not work. I know this is a syntax issue, but I've tried a lot of alternative ways to reformat the addressing of the form/subform/control to no avail. I haven't found any examples of addressing form/subform/control in the fashion of Forms(MainForm).Controls(Control), which seems like it is probably the key. Thanks very much for any help or examples. |
#3
| |||
| |||
|
|
Would the pop-up be called from main forms or the relevant Sub forms or both? Do you really need to requery a control on the subform as opposed to form itself? Jon |
#4
| |||
| |||
|
|
Would the pop-up be called from main forms or the relevant Sub forms or both? Do you really need to requery a control on the subform as opposed to form itself? Jon |
![]() |
| Thread Tools | |
| Display Modes | |
| |