Results 1 to 6 of 6
  1. #1
    faca is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    52

    Multiple prices for same product

    Hello!



    I have database (car repair) with 4 tables:

    Costumer (Info about costumer and car)

    Parts (PartID, PartNumber, PartName, Unit, SellingPrice, PurchasePrice, Store, TaxRate)

    Service (ServiceID, CostumerID, Kilometers, DateOfService, Notes, Paid (Yes,No), PaymentType)

    ServiceInfo (ServiceInfoID, ServiceID, PartID, Quantity)

    Problem is that when i enter new price for part all previous services get auto-updated..

    Example:
    3 march -> price for motor oil is 80$
    Service 1
    Service 2

    12 march -> price for motor oil increases to 89$
    Service 3

    Now if ill update price to 89$ also price in Service 1 and 2 will be updated to 89$ (it should stay 80$)

    How could i fix this?

    Thanks

  2. #2
    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

  3. #3
    faca is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    52
    Already wanted to add price to ServiceInfo but the person (mechanic) who is using database must than check price on web or at store for every part again and again.. not good

  4. #4
    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
    ??? Here's another link re Selling Price and historic records that my help.

    You can not simply refer to the Price of the Product in the Product table. When you update the Price in the Product table (and that is a common requirement in any business), you will change all your historic Invoice records.
    You save the AgreedUponPrice on the Sales detail record.

    In effect, the Price of the Product in the Product table is the CurrentProductPrice.
    When you store the AgreedUponPrice on the Sales detail record, you are making a permanent record of the SellingPrice of that Product to that Customer on that Order. Which does not affect historic sales records.

    If you have a special, or a loyalty program you can not rely on the CurrentPrice of the Product. If you have a 15% sale or you offer special Prices to regular customers after X purchases, then it is an AgreedUponPrice ---not necessarily the current productPrice that gets recorded.

  5. #5
    faca is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    52
    got it now thank you for your help

  6. #6
    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

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

Similar Threads

  1. Replies: 2
    Last Post: 08-12-2017, 07:25 AM
  2. Replies: 4
    Last Post: 12-25-2016, 10:46 AM
  3. Replies: 6
    Last Post: 02-28-2015, 11:57 AM
  4. Replies: 3
    Last Post: 05-28-2013, 11:27 AM
  5. Update multiple product id's
    By thanosgr in forum Access
    Replies: 10
    Last Post: 02-24-2012, 07:54 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