Results 1 to 3 of 3
  1. #1
    alexisa is offline Novice
    Windows XP Access 2002
    Join Date
    Mar 2016
    Posts
    2

    Combo Box with Text Box

    Hi everyone,
    I am new and learning. I have not started on any newer versions of Access. I am on 2002, but I think that 2003 and 2007(which I have penciled to start on pretty soon) are very similar in relation to my question.
    Here it goes:
    I have a ComboBox which drops down with a list of categories. Let's say: Classic Audio and Vintage Amps. (The combo box works, as I can send the category items to a form in datasheet view etc.)


    I also have a TextBox which is bound to the "ItemID#" (auto number) for the items that are included in each category, then a TextBox which holds the item description. I also have a "Next Record" button.
    What I am trying to do is this. When I select a category from the drop down box, I would like to have the first item on the list of items contained in the category selected, populate the Textboxes with the "ItemID#" and the corresponding description of the FIRST item of the category selected with the lowest ItemID#. Then when I click on the "Next Record" button to have the TextBox and Description updated with the next record, in ascending order (by ItemID#).
    The ItemID# may or may not be in sequence.
    I hope this all makes sense.
    Cheers!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Can't you just make a continuous form sorting ITEMID asc.
    then when you pick the combo item , filter on the records.

    Code:
    Sub cboBox_afterupdate
       Me.filter ="[field]='" & cboBox & "'"
       Me.filterOn= true
    end sub

  3. #3
    alexisa is offline Novice
    Windows XP Access 2002
    Join Date
    Mar 2016
    Posts
    2
    Thank you for taking the time. I am 100% sure of what you mean but I'll play with and see where I get.

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

Similar Threads

  1. Replies: 1
    Last Post: 02-06-2016, 05:33 AM
  2. Replies: 1
    Last Post: 07-22-2014, 01:24 PM
  3. Replies: 2
    Last Post: 08-16-2012, 10:02 PM
  4. Replies: 3
    Last Post: 03-15-2012, 02:27 PM
  5. Replies: 4
    Last Post: 08-16-2011, 05:54 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