Results 1 to 3 of 3
  1. #1
    ajitvyas03 is offline Novice
    Windows 10 Access 2019
    Join Date
    Apr 2023
    Posts
    1

    add new data record

    Dear user /friend



    As I am using access 2019, beginner of access. I have created form add record. my question is that my each entry has multiple value . for example i created field as following way

    bill no. party name name of item qty.(bags) weight rate (20 per kg) amount buyer

    1 xyz onion 15 700 kgs 145 5075 vyz ltd
    chana 10 60 kgs 900 2780 cy ltd
    makai 05 100 kgs 700 17000 chandan store

    thus i want to this data to add in database. party name will be same for entry but buyer name and other item will be different.
    can any body solve by vba code please

    thanks in advance

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    master form & subform

    the master for will use the tOrder table , then use a combo box to select the tCustomerID (all customer detail in tCustomer table)
    the subform will use tOrderDetail table,

    in the subform , set the LINK properties to link on OrderID key.
    then you can enter each item in the subform.

    tCustomer tbl:
    CustID
    Name
    Addr
    etc

    tOrders tbl:
    OrderID
    CustID
    OrderDate
    etc


    tOrderDetail tbl:
    OrderID
    ItemNo
    Qty
    Amt
    etc

    read up on master form/subforms.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Further to ranman's comments/advice, I recommend you research database design.
    You will encounter things like:
    -business rules
    -normalization
    -join types.

    Welcome to the forum and good luck with your project.

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

Similar Threads

  1. Replies: 2
    Last Post: 03-07-2023, 08:47 AM
  2. Replies: 6
    Last Post: 02-01-2022, 04:38 PM
  3. Replies: 6
    Last Post: 11-15-2017, 02:28 PM
  4. Replies: 9
    Last Post: 03-01-2017, 10:00 AM
  5. Replies: 3
    Last Post: 02-06-2013, 07:23 PM

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