what is wrong in my code it give msg Error 424 object requir

March 21, 2017 at 21:12:47
Specs: Windows 7
I am trying to log in form but when i run program error 424 object require apear
how can i solved i am using vb 6.0 and the code is
Private Sub Command1_Click()
loginadodc1.RecordSource = "select * from tblUsers where UserName'" + DataCombo1.Text + "'And Password ='" + txtPass.Text + "'"
loginadodc1.Refresh
If loginadodc1.Recordset.EOF Then
MsgBox "Login Faild...!!! Try Again", vbCritical, "Please Enter Correct Password"
Else
loginfrm.Hide
welcomfrm.Show
DataCombo1.Text = ""
txtPass.Text = ""
End If
End Sub

See More: what is wrong in my code it give msg Error 424 object requir

Report •

#1
March 24, 2017 at 03:32:06
Hit debug and a line will be highlighted in yellow, tell us which line that is so we can narrow the issue down. It is probably because you are addressing an object such as a textbox that does not exist.

Report •

#2
August 31, 2017 at 08:37:31
there's nothing wrong, as for me

Report •
Related Solutions


Ask Question