
30/03/2006, 15:20
|
 | | | Fecha de Ingreso: febrero-2005 Ubicación: Venezuela
Mensajes: 524
Antigüedad: 20 años, 10 meses Puntos: 1 | |
Puedes probar con este codigo...
Código:
Dim Rst As ADODB.Recordset
Set Rst= New ADODB.Recordset
Rst.CursorLocation=adUseClient
Rst.Open "Select * from usuarios where usuario = '" & UCase(Trim(Text1)) & "'", cnn, adOpenStatic, adLockOptimistic, adCmdText
If Not Rst.EOF Then
MsgBox "ya existe"
Else
Rst.AddNew
Rst!usuario = UCase(Trim(Text1))
Rst!contraseña = UCase(Trim(Text2))
Rst!nombre = UCase(Trim(Text3))
Rst!nivel = UCase(Trim(Text4))
Rst.Update
Rst.Close
Set Rst= Nothing
MsgBox "Registro Guardado"
End If
__________________ ホルヘ・ラファエル・マルティネス・レオン
Última edición por vbx3m; 30/03/2006 a las 15:42 |