Ver Mensaje Individual
  #4 (permalink)  
Antiguo 05/01/2006, 05:37
Avatar de aldo1982
aldo1982
 
Fecha de Ingreso: noviembre-2004
Ubicación: Santa Fe (Argentina) Colon F.C
Mensajes: 1.362
Antigüedad: 20 años, 5 meses
Puntos: 6
pimero esos corchetes kiza el sql lo toma como error de caracter...segudno aca te pongo como lo haria yo (con respecto a L2 te dejo un ejemplo dps guiate vos solito



Set cxnfac = New ADODB.Connection
cxnfac.ConnectionString = "Driver={MySQL ODBC 3.51 Driver};Server=localhost;Port=3306;Option=131072;S tmt=;Database=l2jdb;" & "uid=" & Form12.uid1 & ";" & "pwd=" & Form12.pwd1 & ";"



cxnfac.Open
SQL = "select * from characters where char_name like '" & Text1.Text & "' "
Set rs = cxnfac.Execute(SQL, , adCmdText)

Do While Not rs.EOF
person = rs!char_name
If Text1.Text = rs!char_name Then

Label7 = rs!classid


End If
rs.MoveNext
Loop
rs.Close
cxnfac.Close
If Text1 <> person Then
MsgBox "No existe el personaje: " & Text1.Text
Exit Sub
End If
__________________
LA MUERTE ESTÁ TAN SEGURA DE VENCER QUE NOS DA TODA UNA VIDA DE VENTAJA