Conditional help

  • Thread starter Allen the Computer Guy
  • Start date
A

Allen the Computer Guy

I have a macro that runs when my database opens. It checks to see if the
database is running in a trusted location. It then performs a saved import
to update its data. I need a condition to only run the import macro if the
file actually exists. My database is fairly simple but I have REALLY simple
users that can't handle a file not existing error message.

Thanks...
 
S

Steve Schapel

Allen,

Try like this, for the Condition...
Len(Dir("C:\YourFolder\YourFile"))>0
 

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

Top