Technically this is a continuation of Thread102-604460, but my question has dramatically changed since that posting.
I am trying to use the UpdateSQL component. I have created the component, used the Update Editor to create my Modify SQL:
update JMPMAIN
set
RTM = :RTM
where
JURNUM = :OLD_JURNUM
I have the following code:
procedure TfrmMileageReview.btnOkClick(Sender: TObject);
begin
with JMSData.qryMilesReview do
begin
If UpdatesPending then
ApplyUpdates;
end;
end;
After I open the frmMileageReview, the data is appearing in the DBGrid. If I change the first record but don't move off it and press the ok button, nothing happens; if I change the first record, move to the second record and press ok, the data is changed in the database; if I try to change any other data, when I move off the cell I get the error:
Could not find record.
any ideas on what I'm doing wrong?
Leslie
landrews@metrocourt.state.nm.us
There are 10 types of people in the world -
those who understand binary
and
those who don't!
I am trying to use the UpdateSQL component. I have created the component, used the Update Editor to create my Modify SQL:
update JMPMAIN
set
RTM = :RTM
where
JURNUM = :OLD_JURNUM
I have the following code:
procedure TfrmMileageReview.btnOkClick(Sender: TObject);
begin
with JMSData.qryMilesReview do
begin
If UpdatesPending then
ApplyUpdates;
end;
end;
After I open the frmMileageReview, the data is appearing in the DBGrid. If I change the first record but don't move off it and press the ok button, nothing happens; if I change the first record, move to the second record and press ok, the data is changed in the database; if I try to change any other data, when I move off the cell I get the error:
Could not find record.
any ideas on what I'm doing wrong?
Leslie
landrews@metrocourt.state.nm.us
There are 10 types of people in the world -
those who understand binary
and
those who don't!