Results 1 to 3 of 3
  1. #1
    haywam59 is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2016
    Posts
    5

    Question Appending multiline data from a form

    Hi,

    I have a database containing products and then a table showing the bill of materials and then a table showing batch numbers. So for example I could have Product 1 that is made from Material A, Material B and Material C. My Batch table shows that I am making Batch 1234 of Product 1. I'd like to be able to create a form that when I enter Batch 1234 it shows me what the ingredients are required in a datasheet style and allow me to enter the qty used and batch details of the materials used and update a fourth table of MaterialTransfers.

    Can anyone advise the best way of doing this? I'm pretty good with access but this is blowing my mind a little. I built a query to link together the tables but due to the one-to-many links it comes out as an un-updateable recordset.

    Any help or suggestions would be great.



    Thanks
    Mark

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    form /subforms. (this is much like an online shopping cart)

    creating the batch, you add a record, (by picking Product 1)
    the subform would show (via query thru subform) all the items in Product 1.
    Then when you move to a different record, the sub form shows THAT list.


    (this would later, add all the materials, to the tBatchMaterial table, when youd click a 'build' button to assemble all materials via queries.)

  3. #3
    haywam59 is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2016
    Posts
    5

    Build button

    Hi Ranman,

    Thanks, I've got the form and subform to show me the Products and ingredients. Its the last 'build' bit that I'm struggling with. Because I need to add details that don't exist in the Materials table, like batch number of the material etc but copy the ones that I do have like Product ID and Material ID. So If it shelps my tables are like this:

    tblProducts: Product ID, Product Name, Product Description etc
    tblBOM: ID, ProductID, MaterialCode, Qty
    tblMaterials: MaterialCode, Material Description etc
    tblProductTransfer: ID, BatchNum, ProductID, MaterialCode, QtyUsed, MaterialBatch etc

    I can build the queries to link tblProducts, tblBOM and tblMaterials together. I'm stuck on how I show a form that displays the Product and materials required and have space to add the QtyUSed and Materials Batch and then add all of that to tblProductTransfer


    Quote Originally Posted by ranman256 View Post
    form /subforms. (this is much like an online shopping cart)

    creating the batch, you add a record, (by picking Product 1)
    the subform would show (via query thru subform) all the items in Product 1.
    Then when you move to a different record, the sub form shows THAT list.


    (this would later, add all the materials, to the tBatchMaterial table, when youd click a 'build' button to assemble all materials via queries.)

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

Similar Threads

  1. Export from access to multiline text file
    By JoRo50 in forum Import/Export Data
    Replies: 7
    Last Post: 11-04-2014, 06:07 PM
  2. Appending data using coding..!!
    By desiretolearn in forum Programming
    Replies: 3
    Last Post: 06-09-2014, 10:31 AM
  3. Multiline textbox query search
    By gustavoavila in forum Access
    Replies: 1
    Last Post: 02-10-2014, 01:56 PM
  4. Replies: 2
    Last Post: 03-14-2013, 08:39 AM
  5. Appending Data to Current Record on a Form
    By ganoudij in forum Access
    Replies: 2
    Last Post: 06-08-2011, 07:18 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