Results 1 to 6 of 6
  1. #1
    anthgav is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Posts
    86

    Enable a combo box for a new entry only


    I want to enable a combo box on a form for a new entry only. What's the best way to achieve this?

  2. #2
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    test for a new record.

    If Me.NewRecord then
    'enable combo
    else
    'disable combo
    end if

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Only allow input to combobox on a New Record?

    Could use code in form Current event:

    Me.comboboxname.Enabled = Me.NewRecord
    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.

  4. #4
    anthgav is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Posts
    86
    Thanks guys, got that working now.

  5. #5
    anthgav is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Posts
    86
    In addition how to I allow copy from the the disabled combobox?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Text cannot be selected. Could have button code grab the combobox value.
    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. Enable/Disble a control for data entry
    By PinkLady50 in forum Forms
    Replies: 4
    Last Post: 06-26-2017, 07:43 PM
  2. Enable Page based on selection from combo box
    By Nadine67 in forum Access
    Replies: 21
    Last Post: 03-10-2016, 08:29 PM
  3. Replies: 2
    Last Post: 11-30-2011, 08:44 PM
  4. Replies: 1
    Last Post: 02-25-2011, 10:03 AM
  5. Replies: 3
    Last Post: 09-29-2010, 09:31 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