Bucephalus
Registered User.
- Local time
- Today, 21:50
- Joined
- May 21, 2012
- Messages
- 14
Hello,
could anyone pls help me on this?
I am trying to create a login form and end up with this error below,
I am just a beginner and I used this code which was already available in the internet.
Run-Time error '2450':
Microsoft Access cannot find the referenced 'frmlogin'.
the code:
Private Sub cmdadd_Click()
If DLookup("[AccessLevelID]", "tblUser", "[UserID] = " & Forms!frmlogin!cbouser) = 1 Then
MsgBox "Login Successful!", vbOKOnly
Else
MsgBox "Login Failed!You have only limited access!!", vbOKOnly
End If
End Sub
could anyone pls help me on this?
I am trying to create a login form and end up with this error below,
I am just a beginner and I used this code which was already available in the internet.
Run-Time error '2450':
Microsoft Access cannot find the referenced 'frmlogin'.
the code:
Private Sub cmdadd_Click()
If DLookup("[AccessLevelID]", "tblUser", "[UserID] = " & Forms!frmlogin!cbouser) = 1 Then
MsgBox "Login Successful!", vbOKOnly
Else
MsgBox "Login Failed!You have only limited access!!", vbOKOnly
End If
End Sub