Re: Non-programmer needs code to find file on user's hard drive
- From: Marshall Barton <marshbarton@xxxxxxxxxx>
- Date: Thu, 20 Oct 2005 14:56:25 -0500
Wilsoch wrote:
>Long story short: My Access developer is letting me down. He doesn't
>really know VB and he can't figure out how to do what I need.
>
>Situation:
>Access database that will be used locally on individual user's
>machines.
>
>What I need:
>I need code to make Access look for a "security" file located on the
>user's hard drive. If it finds the file, it allows the user to continue
>into the application. If it doesn't find the file, the database shuts
>down and does not let the user proceed.
>
>I'm begging and pleading for help from all of you experts. I am not a
>VB programmer, and I'm not so ignorant as to think I could teach myself
>how to do this in the short time I have before I need to release this.
This should be the essence of checking for the existence of
a file:
If Dir("c:\path\file") = "" Then
Application.Quit
End If
--
Marsh
MVP [MS Access]
.
- Prev by Date: Programming Loop with SQL Update Query
- Next by Date: Re: Programming Loop with SQL Update Query
- Previous by thread: Re: Non-programmer needs code to find file on user's hard drive
- Next by thread: Re: Printer dialog on acViewNormal
- Index(es):
Relevant Pages
|