Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2013
    Location
    Melbourne
    Posts
    8

    Choosing A Secondary List In A Combo Box


    Hi, I have created a database to store all my car magazine information. I have an "Enter Data Form" where one of my entries is a combo box. The combo box is linked to the [car year] Table. When I click on the combo box side arrow I get the years "1930; 1940;1950, 1960 etc. I scroll to the year :say 1950 select it and then click back into the chosen field and manually change the '0' to '3'.... = 1953. I would like to automate this function further and scroll down the combo box list to; say 1950 and when highlighted it would open a secondary column with the years from 1951-1959... then I could choose 1953 and that would save me from manually having to change the last digit of the year. Would I be looking at using some kind of subform? Thank you for your help. regards Hector.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Why not just type 1953 into the combobox? 4 fast key strokes as opposed to a bunch of scrolling and clicking.

    Otherwise, review http://www.datapigtechnologies.com/f...combobox2.html
    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
    Join Date
    Oct 2013
    Location
    Melbourne
    Posts
    8
    Hi, thank you for your reply and you are probably right. But it didn't answer my question. Can it be done? Can you scroll down the column in a combo box and when you stop/highlight a line it will open another column in the same combo box (a second column beside it) that you can choose a line from? I will check out the link you supplied...... Thanks again, Hector.

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    The answer to your original question is 'no.' As June7 said, trying to do this kind of thing in order to skip entering a 4-digit value is really inappropriate; in point of fact it would probably increase the work/time involved!

    But if you had a valid reason for using hierarchical data, which is what you're talking about, here, you could use two Comboboxes, set up as Cascading Comboboxes. Using your scenario, when selecting 1930 from the first Combobox, the second Combobox would only show 1930, 1931, 1932, 1933...and so on:

    Cascading List for Access Forms

    Cascading Combo/List Boxes


    Alternatively, you could use an ActiveX TreeView control:

    Treeview Control Sample Downloads

    Linq ;0)>

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    I didn't explicitly say no, but implied with reference to a tutorial of what can be done. It's the same technique Linq describes.
    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.

  6. #6
    Join Date
    Oct 2013
    Location
    Melbourne
    Posts
    8
    Thank you for your help. I have got my solution by using a second combo box. regards hector.

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

Similar Threads

  1. Reuse primary or create secondary tables?
    By squirrly in forum Database Design
    Replies: 7
    Last Post: 03-04-2013, 06:34 PM
  2. Replies: 1
    Last Post: 11-13-2011, 08:01 AM
  3. Replies: 1
    Last Post: 02-18-2011, 01:40 AM
  4. help in choosing from list
    By Nokia N93 in forum Programming
    Replies: 4
    Last Post: 11-30-2010, 07:29 AM
  5. Primary and Secondary Keys...
    By LittleOleMeDesigns in forum Database Design
    Replies: 5
    Last Post: 07-24-2009, 11:33 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