A family of Microsoft relational database management systems designed for ease of use.
ok, I am grateful
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello there, please someone should help me on this code problem, I am working on how to login to a form main menu using a login screen to achieve gain access,I have created a table called "Admin" and a "login form" I created textboxes for "user name and Password" with the following codes:
Private Sub btnLogin_Click()
Dim rs As Recordset
Set rs = CurrentDb.OpenRecordset("tblAdim", dbOpenSnapShot, DbReadOnly)
rs.FindFirst "UserName='" & Me.txtUsername & "'"
If rs.NoMatch = True Then
Me.lbWrongUser.Visible = True
Me.txtUsername.SetFocus
Exit Sub
End If
Me.lbWrongUser.Visible = False
If rs!Password <> Me.txtPassword Then
Me.lblWrongPass.Visible = True
Me.txtPassword.SetFocus
Exit Sub
End If
Me.lblWrongPass.Visible = False
DoCmd.OpenForm "frmMainMenu"
DoCmd.Close acForm, Me.Name
End Sub
But the exception I got is :" user defined type not defined" Please tell me what to do.
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
ok, I am grateful
DAO is an abbreviation of Data Access Objects; a set of code objects designed to allow manipulation of databases.
I am very much happy now, one more thing what is the full meaning of "DAO"
it really works,thanks so much