R
Rob P
Hi
I am using the follwing code extracted from an MS access book to pass a name
not in a combo list to an input form. Ie the the not in list procedure
saves the string OpenArgs opens and passes the string to the input form.
It basically works (having commented out one line) however the IsNothing
function does not appear to exsist? Have tried IsNull etc hence opening
the form normally generates an error message as the OpenArgs does not exsist
Any thougths much appricated
Private Sub Form_Load()
Dim strIName As String, intSpace As Integer
'If IsNothing(Me!OpenArgs) Then Exit Sub
'Parse the first and last names set default values for new record
strIName = OpenArgs
intSpace = InStr(strIName, " ")
Me![First Name].DefaultValue = """" & Left(strIName, intSpace - 1) & """"
Me![Last Name].DefaultValue = """" & Mid(strIName, intSpace + 1) & """"
End Sub
I am using the follwing code extracted from an MS access book to pass a name
not in a combo list to an input form. Ie the the not in list procedure
saves the string OpenArgs opens and passes the string to the input form.
It basically works (having commented out one line) however the IsNothing
function does not appear to exsist? Have tried IsNull etc hence opening
the form normally generates an error message as the OpenArgs does not exsist
Any thougths much appricated
Private Sub Form_Load()
Dim strIName As String, intSpace As Integer
'If IsNothing(Me!OpenArgs) Then Exit Sub
'Parse the first and last names set default values for new record
strIName = OpenArgs
intSpace = InStr(strIName, " ")
Me![First Name].DefaultValue = """" & Left(strIName, intSpace - 1) & """"
Me![Last Name].DefaultValue = """" & Mid(strIName, intSpace + 1) & """"
End Sub