Dim con As New ADODB.Command Dim rs As New ADODB.Recordset Private Sub cmdlogin_Click() OpenCon rs.Open "SELECT * FROM [tbladmin] WHERE [username] = '" & txtUsername.Text & "' AND [password] = '" & txtPassword.Text & "'", con, adOpenStatic, adLockOptimistic If rs.RecordCount <> 0 Then MsgBox "the user has login", vbOKOnly + vbInformation, "LOGIN" frmadmin.Show ElseIf rs.RecordCount <> 1 Then MsgBox "please re-enter your username/password" End If End Sub
arguments are of the wrong type
Page 1 of 11 Replies - 1133 Views - Last Post: 31 August 2012 - 04:00 PM
#1
arguments are of the wrong type
Posted 20 August 2012 - 07:46 PM
hi I'm having arguments are of the wrong type I'm having errors in rs.Open "SELECT * FROM [tbladmin] WHERE [username] = '" & txtUsername.Text & "' AND [password] = '" & txtPassword.Text & "'", con, adOpenStatic, adLockOptimistic
Replies To: arguments are of the wrong type
#2
Re: arguments are of the wrong type
Posted 31 August 2012 - 04:00 PM
The reason that you're not getting any responses is because you haven't explained your problem clearly enough. Please go into a bit more detail.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|