J
JimP
Can I use the OpenArgs property of DoCmd.Openform to set the DefaultValue of
a Control?
e.g.
DoCmd.OpenForm "MyForm",,,,,acDialog,"MyValue"
Private Sub Form_Open(Cancel As Integer)
Me!MyControl.DefaultValue = Me.OpenArgs
End Sub
This sets the value of MyControl to "#Name?", not "MyValue"
a Control?
e.g.
DoCmd.OpenForm "MyForm",,,,,acDialog,"MyValue"
Private Sub Form_Open(Cancel As Integer)
Me!MyControl.DefaultValue = Me.OpenArgs
End Sub
This sets the value of MyControl to "#Name?", not "MyValue"