L
learning_codes
Hi,
I'm create a list of userid and name in a table. Both fields are
primary key. I design a form and create two unbound box. This are
for enter UserID and Name to check if there is a match before going to
the form or msgbox saying, "please contact the contact person"
Form:
1st Unbound box: txtUserID
2nd Unbound box: txtName
------------- create a button "Click"
Table:
UserID
Name
'************************************
If Me.txtUserID = [Table1].[UserID] and Me.txtName = [Table1].[Name]
then
.....
.....
go to form
Else
MsgBox "Please contact Administrator"
Exit Sub
End if
'***********************************
I try many times but I don't know if I did the right thing.
I would be much appreciated of your help.
Thanks
I'm create a list of userid and name in a table. Both fields are
primary key. I design a form and create two unbound box. This are
for enter UserID and Name to check if there is a match before going to
the form or msgbox saying, "please contact the contact person"
Form:
1st Unbound box: txtUserID
2nd Unbound box: txtName
------------- create a button "Click"
Table:
UserID
Name
'************************************
If Me.txtUserID = [Table1].[UserID] and Me.txtName = [Table1].[Name]
then
.....
.....
go to form
Else
MsgBox "Please contact Administrator"
Exit Sub
End if
'***********************************
I try many times but I don't know if I did the right thing.
I would be much appreciated of your help.
Thanks