DbExpress
14/08/2003
0
Uso o seguinte comando:
If OpenPictureDialog1.Execute then
begin
Image1.Picture.LoadFromFile( OpenPictureDialog1.FileName );
if OpenPictureDialog1.FileName <> ´´ then
begin
Image1.Visible := True;
if not ( QryPAR.State in [dsEdit, dsInsert]) then
QryPAR.Edit;
QryParLOGO.LoadFromFile( OpenPictureDialog1.FileName );
QryPar.Post;
[b:09b079c5aa] QryPar.ApplyUpdates( -1);[/b:09b079c5aa]
end;
end;
E me aparece o seguinte erro:
´Unable to find record. No key specified´.
O que fazer??
If OpenPictureDialog1.Execute then
begin
Image1.Picture.LoadFromFile( OpenPictureDialog1.FileName );
if OpenPictureDialog1.FileName <> ´´ then
begin
Image1.Visible := True;
if not ( QryPAR.State in [dsEdit, dsInsert]) then
QryPAR.Edit;
QryParLOGO.LoadFromFile( OpenPictureDialog1.FileName );
QryPar.Post;
[b:09b079c5aa] QryPar.ApplyUpdates( -1);[/b:09b079c5aa]
end;
end;
E me aparece o seguinte erro:
´Unable to find record. No key specified´.
O que fazer??
Havilux
Curtir tópico
+ 0
Responder
Clique aqui para fazer login e interagir na Comunidade :)