Ver Mensaje Individual
  #13  
Antiguo 12-10-2010
Avatar de ramflores
ramflores ramflores is offline
Miembro
 
Registrado: may 2005
Ubicación: Monterrey, Mex.
Posts: 87
Reputación: 19
ramflores Va por buen camino
Buen dia gracias por sus respuesta, he echo lo de pasarlo a ADO lo he dejado asi


Dm.ADOQuery1.Close;
Dm.ADOQuery1.SQL.Clear;
Dm.ADOQuery1.SQL.Add('Insert Into PrendaFoto(IdGpoPrenda, IdPrenda, Foto)');
Dm.ADOQuery1.SQL.Add(' Values(:IdGpoPrenda, :IdPrenda, :Foto)');
Dm.ADOQuery1.Parameters.ParamByName('IdGpoPrenda').Value := Dm.TUniformes.FieldByName('idGpoPrenda').AsInteger;
Dm.ADOQuery1.Parameters.ParamByName('IdPrenda').Value := Dm.TUniformes.FieldByName('idPrenda').AsInteger;
Dm.ADOQuery1.Parameters.ParamByName('Foto').LoadFromFile( OpenPictureDialog1.FileName, ftBlob );
Dm.ADOQuery1.ExecSQL;
Dm.ADOQuery1.Close;

pero me sigue marcando el mismo error

gracias de antemano
__________________
Gracias de antemano
Saludos ........
---------------------------------
Ramiro Flores
Responder Con Cita