I have a form Beweging_Uit with an input text field : Boek_ref
I have a save button that executes some code and checks a special condition
if condition is met I want to open a form Bewegingen_open (that can already be open)
I added a
DoCmd.OpenForm "Bewegingen_open", WindowMode:=acDialog
the form will open if not open or focus is given to that form
so far so good
on Bewegingen_open I have also an input text field : Boefref_open
what I wanted was to fill this Bewegingen_open.Boekref_open with the value of Beweging_Uit.Boek_ref when opened/called
I added to the code
ref = [Forms]![Beweging_Uit]![Boek_ref]
DoCmd.OpenForm "Bewegingen_open", WindowMode:=acDialog, OpenArgs:=[ref] ---> no error
in the called form Beweging_open :
I see on open and on load
does Load mean : when first loaded ?
and open : opened/called
I wanted to add
If Not Nz(Me.OpenArgs, "") = "" Then
[Forms]![Bewegingen_open]![Boekref_open] = Me.OpenArgs
End If
does it mean I have to code this in both on open/on load for new open or already open ?
It does not return error : but the Beweging_open.Boekref_open is not filled in either case
Do I understand this wrong or do I do something wrong or incomplete
Thanks for all help/hints
Best Regards, Guy