Results 1 to 4 of 4

Thread: Access line items

  1. #1
    Join Date
    Feb 2003
    Posts
    2

    Access line items

    I am trying to add line item details to a Access DB. How
    do i enter records on more than 1 line without creating a new record?
    Thanks

  2. #2
    Join Date
    Nov 2002
    Location
    DE
    Posts
    246
    Correct me if I am not getting the point :-)
    Usually you should have the following structure:

    tblItem (ItemNo, ItemDate, ....)

    tblLineItem (LineItemNo, ItemNo,....)

    the LineItem table references the Item table by ItemNo. In your Item table you have one record per Item, in the LineItem table you have 1 to n records per Item. One representing each LineItem.

  3. #3
    Join Date
    Feb 2003
    Posts
    2
    Yes i have a customer table and a
    order detail table. In the detail table
    1 order could have 1 line or upto 50
    lines. Such as:
    Item#, Item Description, Quanity etc...
    1.
    2.
    3.
    4.
    etc...
    Thanks for your reply

  4. #4
    Join Date
    Nov 2002
    Location
    DE
    Posts
    246
    So you do not have an order table?

    This also means your data model is not normalized properly.

    Generally speaking an order DB looks like this:

    Customers (CustNo, CustName,...)

    Products (ProductNo, ProductName,...)

    Orders (OrderNo, CustNo, OrderDate,...)

    OrderLine (OrderNo, LineNo, ProductNo, Qty, ....)

    With this approach you store the relevant Order data once per order and one record per order line.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •