Results 1 to 2 of 2
  1. #1
    rommelgenlight is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Mar 2009
    Posts
    77

    open access 2007 only when called by executable file

    I have created an executable file that will load my access project.

    What I want to know what code to use in Access that will not continue to load itself when it is not called by the executable file.



    my design would be, the executable file is the only file that will load the access project (FE). and after the access project (FE) is loaded, the executable file will unload and end itself.

    therefore, when I double click the access project (FE), it will not continue to load itself and it will quit especially when it is not called by the executable file.

    I found my answer. but basically I think its not that good but for me it works.

    What I have done is I made a procedure that checks the existence of a file and a registry key. when it is not there, Access will quit.

    Only the executable file will create that file or registry key. and the file and key will be deleted when after access is loaded, logout or quit.

    That's my simple solution for that.

    I know it has potential issues especially on abrupt computer shutdown or improper exit.

    Can some assist here please.

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    I wouldn't use a registry key, abnormal terminations of an Access program is quite common. The mere existence of a file is a sufficient test.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. 2007 MDE will not Open in Access 2003
    By wmecook in forum Programming
    Replies: 4
    Last Post: 12-01-2009, 05:15 PM
  2. Replies: 1
    Last Post: 08-19-2009, 01:54 AM
  3. What Database is Open? (Access 2007)
    By jhrBanker in forum Access
    Replies: 3
    Last Post: 06-06-2009, 09:00 AM
  4. Replies: 1
    Last Post: 06-02-2009, 04:29 PM
  5. Why 2 users cant open an access file directly???
    By finnegan bell in forum Access
    Replies: 6
    Last Post: 03-22-2009, 09:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums