Testing for db existence

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have database named Testing.mdb in a directory and want to determine if
"Copy of Testing.mdb" exists in the same directory.

Thank you.
 
Check out the Dir function in VBA Help. You can use it to determine if a
file exists in a specific directory.
 
try
If Len(Dir("C:\filename")) > 0 Then
'File aready exists

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top