ciao ragazzi ho bisogno di voi! :tongue:
in visual basic come faccio a collegarmi con un data base in access 2000 x fare un controllo sulla psw e user ID?
se e' presente sul db mi apre un altro form se no mi caccia come faccio?
io ho scritto cio' ma nn funziona! aiuto vi prego!!!
Private Sub Command1_Click()
a = Text1.Text
b = Text2.Text
strSql = "select count(*) from tblPassword where UserID = 'Roberto' and Password = 'roberto'"
Debug.Print strSql
Data1.RecordSource = strSql
Debug.Print strSql
strSql = Val(strSql)
Debug.Print strSql
If strSql > 0 Then
Form3.Show
End If
End Sub
grazie!