hola!!! tengo un problema este codigo lo tengo en otro programa y si me funciona en el otro pero en este nuevo no.
codigo:
Private Sub Command1_Click()
Dim DB As Database
Dim TB As Recordset
Dim SQL As String
SQL = "select * from usuarios where usuario = '" & Text1.Text & "'"
Set DB = OpenDatabase("c:\EMPRESA\EMPRESABD.mdb")
Set TB = DB.OpenRecordset(SQL)
If TB.RecordCount > 0 Then
Label4.Caption = "HOLA"
Label4.FontBold = True
Label4.ForeColor = "RED"
Else
Label4.Caption = "NOMBRE INCORRECTO"
Label4.FontBold = True
Label4.ForeColor = "GREEN"
End If
End Sub
Y ME MANDA ESTE MENSAJE:
"ERROR 13 EN TIEMPO DE EJECUCION"
"NO COINCIDEN LOS TIPOS"