Results 1 to 3 of 3
  1. #1
    quarky2001 is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2019
    Location
    Edmonton, AB, Canada
    Posts
    9

    Using a form to collect data to be stored to many tables?

    I'm a bit of a newbie to forms, but I've recently created a database primarily to keep track of our business' invoices (the structure I asked about here: https://www.accessforums.net/showthread.php?t=82434 )

    My structure is like this (hoping this 3-way junction table could work, since I needed to add a way to have multiple products from one supplier on the same invoice, plus every item on the same invoice might be for a different job)



    Click image for larger version. 

Name:	relationships.png 
Views:	21 
Size:	32.3 KB 
ID:	43615

    I'm alright when it comes to creating forms that would add a new supplier, or a new product, etc. but I'm struggling with how a form can create multiple records, in many different tables.

    My question now is how to create a form where you can enter the following information:

    SupplierName, InvoiceNumber, InvoiceDate (same for the entire orden), and then a sub-form, where you can enter, for each item purchased, ManufacturerName, ProductName, UnitOfMeasure (automatically shown based on tblProducts), UnitPrice (autofilled based on DefaultUnitPrice in tblSupplierProducts, but able to be changed on a one-time basis), and Quantity.

    I probably need more guidance than I realize, but hoping someone can point me in the right direction as far as forms go.

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    I think you need a main form bound to your invoices table, in that one you add a subform for InvoiceProducts with combo boxes to select supplierproductid (with its row source based on the tblSupplierProducts table or a query if you want to add the supplier name), jobs (with row source based on tblJobs).

    Cheers,
    Vlad
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,165
    You could try something like the attached
    Attached Files Attached Files

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

Similar Threads

  1. Form to collect data
    By Erictsang in forum Forms
    Replies: 3
    Last Post: 10-01-2017, 01:34 PM
  2. Collect Data from Form
    By mcarmody in forum Forms
    Replies: 1
    Last Post: 06-29-2016, 11:17 AM
  3. Collect Data via Email Form
    By sgilleland in forum Access
    Replies: 3
    Last Post: 05-17-2013, 04:34 PM
  4. Replies: 3
    Last Post: 10-31-2012, 06:45 PM

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