jepoysaipan
Registered User.
- Local time
- Today, 20:05
- Joined
- Nov 4, 2007
- Messages
- 133
Hi Guys,
I have 2 form (Form1) is a log-in form, (Form2) is the Data Entry. After Authenticating the user on Form1 I used DoCmd.OpenForm "MyFormName", , , , , , varUserName, then open Form2 with following code on OnOpen event:
If Not IsNull(Me.OpenArgs) Then
Me.txtUser.Value = Me.OpenArgs
Me.Requery
Else
MsgBox ("Null")
End If
but it always shows the msgBox "Null"
What seems to be the problem with this?
Thanks in advance.
Jeff
I have 2 form (Form1) is a log-in form, (Form2) is the Data Entry. After Authenticating the user on Form1 I used DoCmd.OpenForm "MyFormName", , , , , , varUserName, then open Form2 with following code on OnOpen event:
If Not IsNull(Me.OpenArgs) Then
Me.txtUser.Value = Me.OpenArgs
Me.Requery
Else
MsgBox ("Null")
End If
but it always shows the msgBox "Null"
What seems to be the problem with this?
Thanks in advance.
Jeff