Results 1 to 3 of 3
  1. #1
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124

    How to determine if in Design Mode


    Is there any way to determine, using VBA, whether a form is in Design Mode?

  2. #2
    InsuranceGuy is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Location
    Colorado
    Posts
    126

  3. #3
    Micron is online now Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    If you enter "CurrentProject.AllForms("formName").CurrentView=" (without the RED quotes) in the immediate window of the VB editor (or I suppose in a code module) Intellisense should provide you with a list of properties, amongst which you will see acCurViewDesign.
    So you can test a given form by name. I've read that this will not work for sub forms. From what I see at the linked page, it assigns 0 to two user defined constants and no doubt works, but the information I posted shows how to get at the form view properties while coding. Not to say that is better, just another way.
    Last edited by Micron; 01-02-2016 at 10:27 PM. Reason: added comment on linked page
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Toggling Design Mode On/Off
    By Peter Murray in forum Access
    Replies: 3
    Last Post: 09-01-2015, 05:28 PM
  2. Cannot open in design mode
    By kpalar in forum Forms
    Replies: 4
    Last Post: 08-01-2014, 12:51 PM
  3. Can't open form in Design mode
    By GraeagleBill in forum Forms
    Replies: 4
    Last Post: 01-06-2013, 08:41 PM
  4. Disable Form Design Mode
    By EddieN1 in forum Security
    Replies: 1
    Last Post: 02-16-2012, 03:10 PM
  5. Replies: 4
    Last Post: 01-14-2011, 10:37 AM

Tags for this Thread

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