
17/03/2006, 10:39
|
 | | | Fecha de Ingreso: enero-2004 Ubicación: h.frias 218-301
Mensajes: 121
Antigüedad: 21 años, 3 meses Puntos: 0 | |
error 13 en tiempo de ejecucion, no coinciden los tipos!!!! 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"
__________________ Vampirito |