Results 1 to 3 of 3
  1. #1
    Gezza is offline Novice
    Windows XP Access 2002
    Join Date
    Sep 2010
    Posts
    12

    How can I check if a Form is open?

    Hi, Hope someone can help



    Is there a way of checking if a form is open using VBA?

    I have a database that automatically shuts down after a length of time, problem is that some users may leave half filled out forms open, so when the system shuts down it leaves a dead entry in the database.

    I was hoping to find a way of detecting if a form is open, then if so clearing the entry before closing down

    Cheers

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I use IsLoaded, example:

    If CurrentProject.AllForms("formname").IsLoaded Then
    'do something
    End If
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Gezza is offline Novice
    Windows XP Access 2002
    Join Date
    Sep 2010
    Posts
    12
    Thank you June7, that's exactly what I was looking for

    Cheers
    Gezza

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

Similar Threads

  1. How to check if a form is open.
    By ismith in forum Forms
    Replies: 2
    Last Post: 01-26-2012, 08:10 AM
  2. Replies: 11
    Last Post: 12-28-2011, 04:27 AM
  3. VBA to check if a database is open
    By FSCHAMP in forum Programming
    Replies: 1
    Last Post: 04-28-2011, 08:20 AM
  4. To check or Un-Check all Boxes in a form
    By devcon in forum Forms
    Replies: 7
    Last Post: 05-01-2010, 12:03 AM
  5. Replies: 2
    Last Post: 02-26-2010, 08:14 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