Re: How to verify if Access database exists...
- From: "HD" <dumh@xxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 08:02:10 -0500
Check if the filename you are using for the database exists.delete
If there are no connections to the database you will be able to use file
code to delete the fileHow do I check if there are no connections to the database? And I would I
delete the connections to the database? I've tried to do a if FileExists()
then DeleteFile... but it does not work... it does not give any error, but
it does not delete either.
H. Dumas
"Brian Bushay TeamB" <BBushay@xxxxxxxxx> a écrit dans le message de
news:349p225knmqd9ucg8tmudkovmre954usds@xxxxxxxxxx
I
I am using the ADOX components to create an Access Database...
(TADOXCatalog.create1(path+file);
How can I verify if it already exists before creating it? Also, how can
todestroy it when I am done...
Here is what I need to do... When doing a mail merge with Word... I need
needcreate an Access DataBase with a table which will have different fields
depending of the circumstances... then, when the merge is finished, I
..ldbto destroy this database... When I create the database, it creates a
file(locking file) and when the merge is over, I can't delete this locking
deleteand I can't merge any else.Check if the filename you are using for the database exists.
If there are no connections to the database you will be able to use file
code to delete the file
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- References:
- How to verify if Access database exists...
- From: HD
- Re: How to verify if Access database exists...
- From: Brian Bushay TeamB
- How to verify if Access database exists...
- Prev by Date: Re: Inserts so slow using _Connection.Execute
- Next by Date: Re: dbGo in Delphi 2006
- Previous by thread: Re: How to verify if Access database exists...
- Next by thread: How to connect a .net application to an Oracle RDB database???
- Index(es):
Relevant Pages
|