Re: Recovering from an updatebatch error with a clone




> dstMaster.LoadFromFile('vouchm.adtg');
> dstDetail.LoadFromFile('vouchd.adtg');
>
> dstMaster.Open;
> dstMaster.Edit;
> dstDetail.Open;

Loadfromfile and Open are incompatible.
LoadfromFile opens the dataset using the contents of the file.
Open opens the dataset using records retrieved from the database connection.
So with the above code you loose all the previous edits that you saved with
saveTofile because you over write them with the records in the database.

--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.



Relevant Pages

  • Re: Making a database connection global
    ... I'd recommend looking into the EnterpriseLibrary ... Have a global database connection ... I created a class with a static database connection and the class opens ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Making a database connection global
    ... Does this static database connection object stay open throughout the entire ... I created a class with a static database connection and the class opens ...
    (microsoft.public.dotnet.framework.aspnet)
  • Adding Value to an existing Combo box
    ... which then opens the table/form of which the combo box ... belongs, so that they can enter the new value, close it and then choose it ... Prev by Date: ...
    (microsoft.public.access.gettingstarted)
  • RE: Posting information please
    ... > of in someone elses post. ... Every time I try to reply it opens in the same box. ... > Thank you for any advice. ... Prev by Date: ...
    (microsoft.public.windowsxp.general)
  • Could not perform this operation...
    ... My computer then opens perhaps 100 instances of ... Internet Explorer, in rapid succession. ... Prev by Date: ...
    (microsoft.public.outlook)