Results 1 to 5 of 5
  1. #1
    uoghk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jan 2022
    Posts
    149

    set all controls to disable

    how to set all textboxes, dropdowns, buttons to disabled in simple command?
    thanks.

  2. #2
    Gicu's Avatar
    Gicu is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    It depends on your intended purpose, you could set the AllowEdits property of the form to False, but if you want the unbound navigation\search combos to work if any you would just set the form's RecordsetType property to snapshot (=2).

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    uoghk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jan 2022
    Posts
    149
    Thanks Gicu.
    Although AllowEdits & RecordSetType prevent editing, i also want to set all the textboxes to disabled, so that they have a grey background.

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    Use the tag property.
    See my example database: Set Controls - Mendip Data Systems (isladogs.co.uk)
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  5. #5
    uoghk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jan 2022
    Posts
    149
    thanks isladogs.
    it works.

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

Similar Threads

  1. Replies: 7
    Last Post: 05-21-2020, 04:56 AM
  2. Replies: 3
    Last Post: 04-29-2017, 12:09 PM
  3. MSG Box Disable
    By McArthurGDM in forum Programming
    Replies: 3
    Last Post: 02-25-2015, 04:26 PM
  4. disable controls on a subform,
    By jaymin in forum Database Design
    Replies: 2
    Last Post: 06-23-2012, 07:05 AM
  5. Disable ALT+TAB key using VBA
    By Yance in forum Programming
    Replies: 8
    Last Post: 08-27-2009, 10:36 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