Hi, I'm new here and I didn't found a similar topic so I decided to write here.
I have a problem with the database in Access 2013.
My database keep information about removing \ adding \ moving of products from some locations and when product was transferred \ bought \ sold , in what quantities and into what location.
You can also check the current location of the product.
I have tables:
Table locations
Location..... Product code.........Qty
CB08D...........BL0088........... 430.00
Table datahistory
ID........Product code.............Qty.....Location........... Date
1 ...........BL0088................. -20....... CB08D..... 10/05/2016 15:00
When the user wants to move product to another location have to use a form and enter data: product code, location, Qty
(for example, if he sell 20 pieces of a product from a particular location he typing -20, if he buying he have to type +20).
Data in the table datahistory is readed automatically with function Now ().
Do you know how I can set the automatic counting of the values in the table locations by entering a Qty, product code and location in the table datahistory?
For example. When the user has sold 20 pieces of some product access counting automaticly 430-20 = 410 and give the value of 410, and when the user buy 20 units of the product for warehouse access will count 430 + 20 = 450.
Yust for your information I want to keep data from table datahistory to have record what and when has been sold / purchased / transferred.
Many thanks in advance for your help
I have a problem with the database in Access 2013.
My database keep information about removing \ adding \ moving of products from some locations and when product was transferred \ bought \ sold , in what quantities and into what location.
You can also check the current location of the product.
I have tables:
Table locations
Location..... Product code.........Qty
CB08D...........BL0088........... 430.00
Table datahistory
ID........Product code.............Qty.....Location........... Date
1 ...........BL0088................. -20....... CB08D..... 10/05/2016 15:00
When the user wants to move product to another location have to use a form and enter data: product code, location, Qty
(for example, if he sell 20 pieces of a product from a particular location he typing -20, if he buying he have to type +20).
Data in the table datahistory is readed automatically with function Now ().
Do you know how I can set the automatic counting of the values in the table locations by entering a Qty, product code and location in the table datahistory?
For example. When the user has sold 20 pieces of some product access counting automaticly 430-20 = 410 and give the value of 410, and when the user buy 20 units of the product for warehouse access will count 430 + 20 = 450.
Yust for your information I want to keep data from table datahistory to have record what and when has been sold / purchased / transferred.
Many thanks in advance for your help