Results 1 to 8 of 8
  1. #1
    kris9 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2013
    Posts
    18

    combo box/subform limit

    I have a combo box with 5 options within a subform - Continuous Forms view.



    Option within a combo box is selected and select date for it. After selecting all 5 options, Combo box shouldn't display other options to select. Or limit the subform to only 5 records.

    Any suggestions ?

  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
    What is the source of the combobox options - a table or value list? Want to provide db for analysis? Follow instructions at bottom of my post.
    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
    kris9 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2013
    Posts
    18
    hi, sent you PM

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    What form is involved in issue?
    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.

  5. #5
    kris9 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2013
    Posts
    18
    sent you pm. Form is tblUsers

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    This concerns the combobox in the subform on the Comms Tracking tab?

    Options:

    1. create the set of five records all at one time and instead of combobox make the control a locked textbox - all user does is enter the date for each step

    2. unbound form with 5 'rows' of unbound controls and use code to save record

    This thread discusses both of those options https://www.accessforums.net/forms/checklist-35706.html

    3. restrict the combobox RowSource after each record is created - problem with this is your subform is in continuous view and the combobox RowSource is a lookup saving the step ID instead of the step description. When the combobox is restricted to eliminate steps already used, the description alias is not available and the combobox will be blank. Only ways to handle this are to have a textbox display the related alias description or to save the description to tblCommsTracker
    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.

  7. #7
    kris9 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2013
    Posts
    18
    thanks for this.. will you be able to show me an example please.. and PM me..


    Quote Originally Posted by June7 View Post
    This concerns the combobox in the subform on the Comms Tracking tab?

    Options:

    1. create the set of five records all at one time and instead of combobox make the control a locked textbox - all user does is enter the date for each step

    2. unbound form with 5 'rows' of unbound controls and use code to save record

    This thread discusses both of those options https://www.accessforums.net/forms/checklist-35706.html

    3. restrict the combobox RowSource after each record is created - problem with this is your subform is in continuous view and the combobox RowSource is a lookup saving the step ID instead of the step description. When the combobox is restricted to eliminate steps already used, the description alias is not available and the combobox will be blank. Only ways to handle this are to have a textbox display the related alias description or to save the description to tblCommsTracker

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I prefer responding in threads as much as possible.

    You want an example of which? Did you review the referenced thread? That is an example.
    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. Replies: 8
    Last Post: 06-23-2014, 12:19 PM
  2. Limit Combo box records
    By BFlat in forum Forms
    Replies: 9
    Last Post: 01-26-2013, 05:48 PM
  3. Replies: 11
    Last Post: 10-20-2011, 08:41 AM
  4. Query to Limit Combo Box Choices
    By jimrockford in forum Queries
    Replies: 2
    Last Post: 04-23-2011, 10:24 PM
  5. Replies: 1
    Last Post: 08-26-2009, 10:45 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