i have coded a username password program via using DAO control
created a ms access 7.0 DB file and linked with data1 control and used 2 textbox controls for username and password.
For login cmd button i have written below codes
Dim strCritaria As String
strCritaria = " [Username] = ' " & txtuse.Text & " ' " And "[Password] = ' " & txtpass.Text & " ' "
Data1.Recordset .MoveFirst
Data1.Recordset .FindFirst (strCritaria)
If Data1.Recordset .NoMatch Then
MsgBox "Invalid Entry"
txtuse.Text = ""
txtpass.Text = ""
Else
MsgBox "Login Succussfull"
End If
in execution i am getting type mismatch runtime error 13 in strCritaria line
any help regarding this will be appreciated...
sorry i am new to vb6
created a ms access 7.0 DB file and linked with data1 control and used 2 textbox controls for username and password.
For login cmd button i have written below codes
Dim strCritaria As String
strCritaria = " [Username] = ' " & txtuse.Text & " ' " And "[Password] = ' " & txtpass.Text & " ' "
Data1.Recordset .MoveFirst
Data1.Recordset .FindFirst (strCritaria)
If Data1.Recordset .NoMatch Then
MsgBox "Invalid Entry"
txtuse.Text = ""
txtpass.Text = ""
Else
MsgBox "Login Succussfull"
End If
in execution i am getting type mismatch runtime error 13 in strCritaria line
any help regarding this will be appreciated...
sorry i am new to vb6
Comment