Ver Mensaje Individual
  #2  
Antiguo 25-09-2003
__cadetill __cadetill is offline
Miembro
 
Registrado: may 2003
Posts: 3.387
Reputación: 25
__cadetill Va por buen camino
Código:
Query.SQL.Add('select * from CATXALM');
Query.SQL.Add('where ID_ALMACEN = :alma and');
Query.SQL.Add('     ID_PRODUCTO = :prod');
Query.ParamByName('alma').AsInteger := 3;
Query.ParamByName('prod').AsInteger := 5;
Query.Open;

if Query.Fields[0].IsNull then
   ShowMessage('Articulo inexistente')
else
   ShowMessage('Articulo existente');
Espero te sirva
Responder Con Cita