[AccessD] OpenArgs issue in A2207

Gustav Brock gustav at cactus.dk
Mon Jun 14 15:52:37 CDT 2010


Hi David

OpenArgs is a string ...

DoCmd.OpenForm "frmRpoPartsHistory",,,,,,"966"

To read it you can do:
  strOpenArgs = Nz(Me.OpenArgs)
or:
  lngOpenArgs = Val(Nz(Me.OpenArgs))

/gustav


>>> davidmcafee at gmail.com 14-06-2010 22:16 >>>
I'm having a bit of cerebal flattulance this morning.

I'm calling (both via code or the immediate window):
docmd.OpenForm "frmRpoPartsHistory",,,,,,966


Private Sub Form_Load()
Debug.Print Me.OpenArgs
End Sub

Private Sub Form_Open(Cancel As Integer)
Debug.Print Me.OpenArgs
End Sub

Both subs print Null

Am I doing something wrong, or do OpenArgs work differently in A2007?

Is this Access telling me that I've been away too long?

D






More information about the AccessD mailing list