Results 1 to 3 of 3
  1. #1
    billcar2006 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2014
    Posts
    13

    combo box question

    Is there a way to get a combo box to only show the last id no in its list.

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    You would have to modify the row source for the combo box to a) reverse the sort order and b) select only one record, for example:

    Select top 1 fieldlist from Tablename order by sortfield desc

    Replace fieldlist, tablename and sortfield with the actual names you use in the combo box.

  3. #3
    billcar2006 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2014
    Posts
    13
    Thanks for your answer. All I wanted was an easy way to select the last id. I had the list ordered ascending. I never thought of changing it to defending.sometimes you miss the easy sort when you get an idea stuck in your head.

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

Similar Threads

  1. Combo Box Question
    By buck in forum Access
    Replies: 11
    Last Post: 01-20-2014, 10:14 AM
  2. Replies: 4
    Last Post: 08-25-2012, 07:19 PM
  3. Combo Box Question
    By hawkins in forum Forms
    Replies: 1
    Last Post: 06-27-2011, 01:32 AM
  4. Question-Combo-Box
    By rockrider in forum Forms
    Replies: 1
    Last Post: 02-16-2011, 06:24 PM
  5. Combo box question
    By nkenney in forum Forms
    Replies: 1
    Last Post: 07-09-2009, 08:08 PM

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