Close DB Connections and DB File to restore a previous version

Hi
 I have installed the TBackup Component from http://www.ec-software.com
successfully and can backup an MS Access Database without any problems.

The problem comes in when I try to restore that DB.

Obviously the DB connection needs to be closed and the DB file itself needs
to be closed.

 I have tried the following code:

procedure TForm_DB_Restore.BitBtn2Click(Sender: TObject);

var

  datadir, backupdir : string;

begin

  DataModule_Bread_DB.DataModule_BREAD.Database_BREAD.CloseDataSets;

  DataModule_Bread_DB.DataModule_BREAD.Database_BREAD.Connected:=False;

  datadir := getcurrentdir + '\data';

  backupdir := getcurrentdir + '\backup\BREAD.bck';

  Form_MainMenu.BackupFile1.restore(backupdir, datadir);

  DataModule_Bread_DB.DataModule_BREAD.Database_BREAD.Connected := True;

  DataModule_Bread_DB.DataModule_BREAD.Database_BREAD.Open;

  Form_DB_Restore.Close;

end;

But I get the following error

"Project BREAD.exe raised exception class EFCreateError with message 'Cannot
create file C:\BREADz\Bread 12\data\bread.mdb'.

Process stopped. Use ..."

 The Restore command does work, when not trying to overwrite the Apps DB,
but some other arb file.

Any ideas on how to close the db file so that the restore command can
overwrite from the backup?

 Thanks

Jock Forrester