Hola nuevamente Caral.
Si tienes razon respecto a los IdE en mi caso.
Ejectué el codigo que me sugeriste donde esta con Where y and.
Código Delphi
[-]
procedure TFinscripcion.ApeMEExit(Sender: TObject);
begin
with Query1 do
begin
Close;
SQL.Text:= 'SELECT * FROM BDinscripcion'+
'WHERE NomE = '+QuotedStr(NomE.Text)+
'AND ApePE = '+QuotedStr(ApePE.Text)+
'AND ApeME = '+QuotedStr(ApeME.Text);
Open;
if not IsEmpty then
begin
MessageDlg('Datos EXISTENTE',mtError,[mbOk],0);
NomE.SetFocus;
end;
end;
end;
Solo que ahora me aparece error, con el sigte msj.
Cita:
Project Pbecarios.exe raised exception class EDBEngineError with message 'General SQL error'. [Microsoft][ODBC SQL Server Driver][SQL Server]Linea 1: sintaxis incorrecta cerca de'='.'.Process stopped. Use Step or Run to continue.
|