Results 1 to 3 of 3
  1. #1
    chr1stoper1 is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    57

    Assigning a combo box

    Hi guys I have a query which is currently using a prompt box to ask the user to input a machine number. This is run from a button on a form. Press the button and the prompt appears .I would like to now do one of two things either make a form with every machine number on it or use a combo box to select the machine number. My problem is that I don't know how to get the combo box or the control button to link to the individual machine number. Could any of you guys point me in the right direction here please??


    Thanks for your help

  2. #2
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    click the combo box in design view, follow the wizard. on the first page click use values from a table or query and it will list them there for you.

    If you want the selected choice to be used as a reference you click remember value for later use. Then if you want to pull up data relating to your choice, you must reference the combo box by its name.

    hope that's helped a bit. ask anything specific you like.

  3. #3
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    If you have a lot of machines I would suggest whipping up a quick query that just pulls up all the machines #s so you can use that as the combo's row source. If it is only a few numbers than you can enter them yourself or use a query if you desire.

    In design view click the combo box, in the properties box go to the 'data' tab, then the third option down says 'row source type'.
    If you are using the query it is defaulted as such. If you want to type the values use the drop down and pick "value list".
    Then the option above says 'row source'. Click the (...) and type your values.
    If you use the query option it will bring up a query builder and you can select your query from that and drag the machine number field down into the query builder column.

    Or you can use the wizard like Andy describes above.

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

Similar Threads

  1. Assigning a variable
    By tguitard in forum Programming
    Replies: 1
    Last Post: 05-02-2013, 12:22 PM
  2. Replies: 3
    Last Post: 08-15-2012, 06:48 AM
  3. assigning a variable
    By crowegreg in forum Programming
    Replies: 1
    Last Post: 08-22-2011, 05:55 PM
  4. Ranking and assigning a Value
    By loopyl00 in forum Access
    Replies: 0
    Last Post: 01-11-2011, 12:14 PM
  5. assigning probability
    By TheShabz in forum Programming
    Replies: 1
    Last Post: 05-06-2010, 12:50 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