Hello !
I try to open a form from the NotInList event (check box) and to pass the NewData as OpenArgs.
Here is the Load event in the form I wish to open (frmContoare_tip uri)
But I've obtained the #Name? (see attachment)in the Tip field
Also I've tried to use the Open event but with the same result.
In order to debug, I use this:
And the message is what I expected to be: the right value (also you can see this in attached word file)
Any idea ?
Thank you !
I try to open a form from the NotInList event (check box) and to pass the NewData as OpenArgs.
Code:
DoCmd.OpenForm "frmContoare_tipuri", , , , , acDialog, NewData
Code:
Private Sub Form_Load()
If Not IsNull(Me.OpenArgs) Then
Tip.DefaultValue = Me.OpenArgs
End If
End Sub
Also I've tried to use the Open event but with the same result.
In order to debug, I use this:
Code:
Private Sub Form_Current() 'Debug
MsgBox Tip.DefaultValue
End Sub
Any idea ?
Thank you !
Comment