TAdoQuery.LoadFromFile with D7-Access97



I use D7 with a Access97 database.
In one application i need to export one entire table to XML, delete the records from the table, and then reimport the XML file.
The first part works ok, but i can't find a way to reimport the data in my table there are no records at all.


This is the code:

MainDM is a DataModule
QR is a TAdoQuery

MainDM.QR.SQL.Text := 'DELETE * FROM '+ExpFile;
MainDM.QR.ExecSQL;

MainDM.QR.CursorType := ctKeySet;
MainDM.QR.LockType   := ltBatchOptimistic;
MainDM.QR.SQL.Text   := 'SELECT * FROM TableName';
MainDM.QR.Open;
MainDM.QR.LoadFromFile(FileName);
MainDM.QR.UpdateBatch(arAll);
MainDM.QR.Close;

Someone can help?


Giorgio Forti .