AGREGAR EN UN EDIT COMPARAMETROS
Publicado por MARIA (50 intervenciones) el 13/11/2009 15:54:27
HOLA CHICOS FIGENSE KE TENGO PROBLEMAS POR QUE ESTE ES EL SIGUIENTE CODIGO
query1.sql.clear;
Query1.SQL.Add('select * from BUSUARIO WHERE NOMBRE = : NOMBRE AND CONTRASENA = : CONTRASENA ');
query1.ParamByName('nombre').AsString;
query1.ParamByName('contrasena').AsString;
Query1.Open;
if query1.IsEmpty then begin
query2.SQL.Text:='INSERT INTO BUSUARIO (NOMBRE,NOMBRE_COMPLETO,CONTRASENA,NORMAL,ADMIN) VALUES('+ QuotedStr(Edit1.Text) +','+ QuotedStr(Edit2.Text)+','+ QuotedStr(Edit3.Text)+','+ QuotedStr(Edit4.Text)+','+ QuotedStr(edit5.Text)+')';
end else begin
showmessage('Ya existe');
DICE CUANDO LO COMPILO QUERY1: PARAMETER 'nombre' not found osea no lo encuentra alo mejor tengo problemas en acces por que keria meterle algo y me mandaba error ¿A que se debe esos problemas?
query1.sql.clear;
Query1.SQL.Add('select * from BUSUARIO WHERE NOMBRE = : NOMBRE AND CONTRASENA = : CONTRASENA ');
query1.ParamByName('nombre').AsString;
query1.ParamByName('contrasena').AsString;
Query1.Open;
if query1.IsEmpty then begin
query2.SQL.Text:='INSERT INTO BUSUARIO (NOMBRE,NOMBRE_COMPLETO,CONTRASENA,NORMAL,ADMIN) VALUES('+ QuotedStr(Edit1.Text) +','+ QuotedStr(Edit2.Text)+','+ QuotedStr(Edit3.Text)+','+ QuotedStr(Edit4.Text)+','+ QuotedStr(edit5.Text)+')';
end else begin
showmessage('Ya existe');
DICE CUANDO LO COMPILO QUERY1: PARAMETER 'nombre' not found osea no lo encuentra alo mejor tengo problemas en acces por que keria meterle algo y me mandaba error ¿A que se debe esos problemas?
Valora esta pregunta


0