Results 1 to 2 of 2
  1. #1
    aspfun is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    10

    Using VBA to set up all forms property

    There about 30 forms in my Access app.
    In all forms, I want to setup the same property, such as AUTOSIZE=NO, POPUP=NO.


    How to use VBA to loop all forms to do this job once open mdb file?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Use the Forms collection to iterate through all forms.

    http://msdn.microsoft.com/en-us/libr...ffice.11).aspx

    However, I don't know if properties can be set while forms are closed and not in design view.

    http://msdn.microsoft.com/en-us/libr...ffice.11).aspx
    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.

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

Similar Threads

  1. the property is read only and cannot be set
    By darksniperx in forum Access
    Replies: 16
    Last Post: 11-02-2012, 02:48 PM
  2. Replies: 2
    Last Post: 03-08-2012, 12:59 PM
  3. SQL vs. vba Row Source property
    By eww in forum Programming
    Replies: 7
    Last Post: 10-15-2010, 11:02 AM
  4. Create Property
    By RAPSR in forum Programming
    Replies: 2
    Last Post: 10-12-2010, 12:39 AM
  5. Can Grow Property
    By chum in forum Reports
    Replies: 3
    Last Post: 01-25-2010, 11:10 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