-----Original Message-----
Evening all,
Is it possible to assign more than one 'thing' to the
OpenArgs property? If so,
a) What's the syntax
b) How do you refer to a particular item?
TIA guys,
Lee
You can assign many additional OpenArgs.
DoCmd.OpenForm "FormName", , , , , , "New York" & "," & [ControlName]
If the value of [ControlName] is "Chicago" you have passed, as an
OpenArgs, the string "New York,Chicago"
Then in the form being opened, you would use it's Load event to
separate the string before and after the comma.
In the Form's Code window Declaration's section
Option Explicit
Dim strOne as String
Dim strTwo as String
Then in the Load event:
If Not IsNull(Me.OpenArgs) Then
strOne = Left(OpenArgs,InStr(OpenArgs,",")-1
strTwo = Mid(OpenArgs,InStr(OpenArgs,",")+1
strOne (New York) and strTwo (Chicago) can now be used any where in
the form.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
.