Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help needed with ApplyUpdates.

Status
Not open for further replies.

delphiman

Programmer
Dec 13, 2001
422
ZA

Can anyone tell me why ONE (below) works whilst TWO gives me the
following exception even though I have declared ChildrenDM in the
Uses Clause on DataModule ParentDM?

'Access violation at address 004CBE2C in module 'MDModel.exe'. Read of address 00000058'.
Process stopped. Use Step or Run to continue.'

ONE
On a TFormFather
procedure TfrmFather.btnUpdChildClick(Sender: TObject);
begin
ParentDM.IBdsTrnsfr.ApplyUpdates;
end;

TWO
On a DataModule ParentDM
with ParentDM.IBFatherDataSet do
begin
ChildrenDM.IBdsChild.ApplyUpdates;
end;


Thanks in advance.

Terry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top