Results 1 to 2 of 2
  1. #1
    bearsgone is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2010
    Posts
    4

    How to check if database is locked from VB Outlook

    Hello


    I have a custom form that imports data from a form in Outlook into Access database.

    Does anybody have an example of code that will check if database is locked. If database is locked, data from the form can not be imported and user should be notified. Is there an error code for it, like there is a code 53 if database file is missing?

    Thank you for any help

  2. #2
    llkhoutx is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Try to attach the database and trap the error (I don't know the code), if it won't attach, otherwise it's available.

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

Similar Threads

  1. Access Locked
    By anoobus in forum Database Design
    Replies: 3
    Last Post: 03-01-2012, 04:02 AM
  2. Link Existing Access Database to Outlook Contacts
    By rdaled in forum Database Design
    Replies: 3
    Last Post: 12-17-2009, 10:21 AM
  3. Forms - Project Locked
    By Patrick.Grant01 in forum Forms
    Replies: 3
    Last Post: 05-19-2009, 07:03 AM
  4. Replies: 0
    Last Post: 11-10-2008, 12:35 PM
  5. Replies: 0
    Last Post: 06-19-2007, 09:45 AM

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