PC Review


Reply
Thread Tools Rate Thread

Conditional help

 
 
Allen the Computer Guy
Guest
Posts: n/a
 
      13th Oct 2009
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...
--
Allen Whitelock
Systems Administrator
World Class Automotive

 
Reply With Quote
 
 
 
 
Steve Schapel
Guest
Posts: n/a
 
      13th Oct 2009
Allen,

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

--
Steve Schapel, Microsoft Access MVP


"Allen the Computer Guy" <(E-Mail Removed)>
wrote in message news:BC508FC6-FB5A-4203-8520-(E-Mail Removed)...
> 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...
> --
> Allen Whitelock
> Systems Administrator
> World Class Automotive
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to apply a conditional Select distinct (or conditional Where onduplicated cell values in a column) Jamie Microsoft Access Queries 3 2nd Oct 2009 07:39 PM
Conditional Formatting No Longer Conditional in 2007 Beta =?Utf-8?B?Q2FjdHVhci1Oby1KdXRzdQ==?= Microsoft Excel Crashes 0 17th Nov 2006 10:01 PM
Using query results within Conditional Statement...sequenced conditional queries rafael.farias.jr@gmail.com Microsoft Access 3 30th Aug 2006 02:08 PM
Conditional Formatting that will display conditional data =?Utf-8?B?QnJhaW5GYXJ0?= Microsoft Excel Worksheet Functions 1 13th Sep 2005 05:45 PM
Re: Multiple conditional on conditional format formula Bob Phillips Microsoft Excel Programming 0 27th Jul 2004 05:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:57 PM.