Results 1 to 5 of 5
  1. #1
    Nctukek92 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2013
    Posts
    2

    Narrowing Data Input Options

    This may or may not be a very basic question as I am almost completely inexperienced with Access (I do learn rather quickly however), so bear with me. I am trying to create a database that will narrow the potential inputs you can have as you submit the data. For example; in field one I will have a column titled "Types of Food", in which the user will be able to select from "Fruits, Vegetables, and Meats". The next field will be "Raw Ingredients". I want to make it so that if the user inputs "Fruits" into the first fields the second field will only present the options "Apples, Oranges, and Pears", and so on.



    Any advice is helpful, simplicity is appreciated!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,631
    That is dependent or cascading comboboxes. Review http://datapigtechnologies.com/flash...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
    Estuardo's Avatar
    Estuardo is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Location
    Portugal
    Posts
    22
    G'd morning,
    Here is another example (much better in my opinion) from PBaldy, one of our moderators http://www.baldyweb.com/CascadingCombo.htm
    G'd luck

  4. #4
    Nctukek92 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Apr 2013
    Posts
    2
    Hey guys, thanks for the feedback! Both examples were very helpful, I'm currently working on using what you gave me to create something closer to what I need. Thanks for the head start!

    EDIT: Question - For the second example, how could I make the form create a new line every time I fill it out? For example; Say I picked CA and Los Angeles, how can I get that to save in the database and create a new row that I could then input more information by filling out the same form?
    Last edited by Nctukek92; 05-13-2013 at 05:12 AM. Reason: Additional Questions

  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,631
    Maybe a button Click event to save new record and the refresh the combobox.

    0ne way to save record with date, text, number examples.

    CurrentDb.Execute "INSERT INTO tablename(field1, field2, field2) VALUES(#" & Me.textbox1 & "#, '" & Me.textbox2 & "', " & Me.textbox3)
    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. Compare Data in a Recordset from User Input
    By hammer187 in forum Programming
    Replies: 9
    Last Post: 09-06-2012, 11:34 AM
  2. Data validation: input Thursdays only
    By dgtampa in forum Forms
    Replies: 2
    Last Post: 06-22-2012, 04:42 PM
  3. Sub form data input
    By ghard123 in forum Forms
    Replies: 2
    Last Post: 04-15-2012, 04:47 PM
  4. Using Reports to input data?
    By yes sir in forum Access
    Replies: 2
    Last Post: 09-03-2010, 10:50 AM
  5. Input data In unbound text box
    By chu3w in forum Forms
    Replies: 1
    Last Post: 04-01-2010, 10:21 AM

Tags for this Thread

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