Results 1 to 10 of 10
  1. #1
    pervezahmed is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Posts
    8

    Acces Inventory Price change issue

    Dear sir


    I have created a database called SMCC Products database. This is specially created for the Perishable items where the price change daily,
    I want a form where i will take a circular and there will be a bar code field. i will input barcode and the current price and details will show and i will input new price in the new price field. After input new price the products details will change. But i want that in one circular id i will change multiple products MRP, TP, GP%, with the barcode field.
    I have a table and also a form called Products and the fields are,
    Primary key = bar code
    Category
    Description
    MRP (retail price unit)
    TP (Cost price unit)
    GP % (gross Profit)
    Etc

    I have also a table Circular ( to change the price when i want to
    where Circular id is the primary, and circular date and barcode,
    I am in fix now how to make relationship and the new form of Price Change.....
    Please help me....

    Pervez ahmed

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    The rule is to use a primary key on the first table and a fake key in the second and link them accordingly.
    If your main table is keys with a keyid pk and the second table is chains with a pk of chainsid but also a fk of keyid so they can link together!
    Hope this helps.

  3. #3
    pervezahmed is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Posts
    8
    Dear sir,
    Thanks for your valuable reply....I have made a fake table where 1. bar code id Pk field
    2. Description
    3. New Tp
    4. New MRP
    5. New GP

    So am i needed to add circular id field in this table or i have to do anything else please let me know the details of the relationship.......
    Thank you for your understanding with this matter.
    Pervez Ahmed

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Add both tables to your query and any criteria and your good to go.

  5. #5
    pervezahmed is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Posts
    8
    Dear sir,
    Thanks for your advise. I have link the Real barcode and the fake barcode From both table. And made a query for the form by adding Barcode, New TP, New MRP, New GP from fake table, and Description TP (means old), MRP (means old), GP (means old) from the main table. thats done successfully.
    In fact when i open the form and put the barcode in the field the data shows Old details, and i put the New TP , NEW MRP, and save that

    But the thing is that after close the form and go to the main form. I found that the product price i changed shown the old price and GP%, Not the new Price and GP,
    I am in fix now. Am i doing wrong......If so then how to solve this problem......
    Let me know as soon as possible.
    Thank you sir for your understanding about this matter and your utmost advice,,
    Pervez Ahmed...

  6. #6
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Is your form based on a query or a table? A query will update itself, a table needs added code to do this. Can you post any screenshots of what you are trying to do? Do you have a subform on a main form? When you test the query with new data, does it perform as expected? View table before and after for results!

  7. #7
    pervezahmed is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Posts
    8
    Dear sir,
    Thanks for your understanding....and the eagerness......I have attached the problem i am facing..Please see that and give me the solution.......
    I want that after price change,...The Product price will be replaced with the new Price that i put in the new price entry....
    Thank you once again.......

    Pervez Ahmed
    Click image for larger version. 

Name:	Relationship.jpg 
Views:	13 
Size:	79.3 KB 
ID:	11446Click image for larger version. 

Name:	Price change form...jpg 
Views:	11 
Size:	66.0 KB 
ID:	11447Click image for larger version. 

Name:	Price dont change.jpg 
Views:	12 
Size:	78.5 KB 
ID:	11448

  8. #8
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    I am not sure but try and do a Requery after the update event and see of that helps.

  9. #9
    pervezahmed is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Posts
    8
    I dont know how to do it...

  10. #10
    pervezahmed is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2013
    Posts
    8
    I dont know hot to do it....

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

Similar Threads

  1. Products Inventory Dilema,Add To Inventory
    By burrina in forum Forms
    Replies: 3
    Last Post: 12-02-2012, 12:10 PM
  2. Appending inventory records with current price records
    By sberti in forum Database Design
    Replies: 8
    Last Post: 11-29-2012, 10:24 PM
  3. Inventory issue
    By Anasua in forum Programming
    Replies: 5
    Last Post: 01-28-2011, 08:56 AM
  4. Handling Inventory Costs That Change Over Time
    By mubtuhogar in forum Database Design
    Replies: 5
    Last Post: 10-12-2010, 09:19 AM
  5. acces listbox hatası(acces debug)
    By carso in forum Access
    Replies: 1
    Last Post: 09-22-2009, 04:11 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