Ver Mensaje Individual
  #10 (permalink)  
Antiguo 30/03/2006, 15:20
Avatar de vbx3m
vbx3m
 
Fecha de Ingreso: febrero-2005
Ubicación: Venezuela
Mensajes: 524
Antigüedad: 20 años, 3 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