Results 1 to 3 of 3
  1. #1
    AndyC121 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    37

    multiple orders from combobox

    on my customer form I am trying to use a combo to select a supplier (cboCustomer) which then populates that suppliers items only(cboProduct) in the part/desc combo. this workS okay but I want to be able to select more than one item from that supplier at once and then have this generate a purchase order. I tried a continuous subform but couldn't get this to work. please help.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    A multi-select combobox is only used for populating a multi-value field. I do NOT recommend multi-value field.

    What you describe would require selecting items from a multi-select listbox and then VBA code to create records.

    Customary data structure would have a table for Orders and a related table for OrderDetails. Then a form/subform arrangement using those tables. Your db lacks this.

    Your table and field names don't make sense to me. Why is CustomerID the name of PK field in tblSuppliers? Wouldn't SupplierID make more sense? Why are there CustomerID_FK fields in the other two tables? Where is your tblCustomers?
    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
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    I agree with June --it seems there are tables missing from your relationships picture.
    I see ProductsReceived, but no ProductsOrdered.

    You may want to identify "all of your tables and how they fit within your business" in a plain English description before getting into Forms and how to use combos/listboxes. Just seems a little "cart before the horse" at the moment.

    Good luck.

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

Similar Threads

  1. Replies: 6
    Last Post: 06-27-2018, 04:55 PM
  2. cust with multiple orders that differ
    By slimjen in forum Queries
    Replies: 2
    Last Post: 06-15-2017, 07:51 AM
  3. Replies: 2
    Last Post: 11-01-2016, 09:04 AM
  4. Assigning multiple sequential numbers to orders
    By jree3000 in forum Programming
    Replies: 14
    Last Post: 09-09-2014, 04:35 PM
  5. Replies: 1
    Last Post: 05-05-2010, 10:34 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