Results 1 to 4 of 4
  1. #1
    jwallace203 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2011
    Posts
    4

    adding records

    I have a customer database with orders taken. On my orders page I would like to be able to add multiple products to the same order. How can I set it up so that when I choose a product from the drop down menu a second drop down menu for products appears underneath so I can choose another product to add?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    What's your table structure? Typically you'd have two tables, one for the basic order data (customer, date, etc) and another for the details (a record for each product, including product, quantity, price), related by an order number field. On your form, you'd use a form/subform, with the subform in continuous or datasheet view. In that setup, as soon as you add a product on the first line of the subform a second line would be available to populate with a second product.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    jwallace203 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2011
    Posts
    4

    adding records

    Yes, I have two tables and one of those is order details. I changed the view to continuous and now another record pops up the only problem is that it gives me a new order number. I want one order with ability to add multiple products. How do I do that. Sorry if this is basic; I'm pretty new to access and have been teaching it to myself. thank you

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    The master/child link properties of the subform control should be the order number. That will give each item in the subform the order number from the main record. The wizard should ask about that.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. attachments and adding new records
    By chiefmsb in forum Access
    Replies: 0
    Last Post: 07-06-2011, 01:22 PM
  2. Replies: 10
    Last Post: 01-10-2011, 07:52 PM
  3. Adding Records
    By Rick West in forum Forms
    Replies: 7
    Last Post: 05-17-2010, 02:31 PM
  4. Adding of Fields in Different records
    By pcliaros in forum Queries
    Replies: 1
    Last Post: 03-17-2010, 02:31 AM
  5. adding records through form
    By Rayk in forum Forms
    Replies: 1
    Last Post: 01-09-2010, 07:55 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