Hi All,
I am quite new to Access and hope I have put this in the right section in the forum.
I have created a Stock Database for my company. It records all stock items, any stock adjustments (in or out) and the sales of items.
I have a query (FreeStockCalculation) which calculates the current amount of stock for each item.
The calculation is as follows:
InStock: IIf([Current Stock]>0,[Current Stock],0)-IIf([ShippedQuantity]>0,[ShippedQuantity],0)
"Current Stock" is the total of Stock Adjusted in, minus any Stock Adjusted out.
"Shipped Quantity" is the total of quantity shipped from a sale.
What I want to achieve is if, an adjustment is made which reduces the InStock figure to be below 0, for there to be a pop up. I presume there would be something which needs to be added to the VBA code in the adjustment form?
I also want the same to happen if there is a sale of an item.
Sorry if I haven't been 100% clear, if you need any other information. Let me know. Or if you need me to send over the database with some test data.
Thanks in advance.
I am quite new to Access and hope I have put this in the right section in the forum.
I have created a Stock Database for my company. It records all stock items, any stock adjustments (in or out) and the sales of items.
I have a query (FreeStockCalculation) which calculates the current amount of stock for each item.
The calculation is as follows:
InStock: IIf([Current Stock]>0,[Current Stock],0)-IIf([ShippedQuantity]>0,[ShippedQuantity],0)
"Current Stock" is the total of Stock Adjusted in, minus any Stock Adjusted out.
"Shipped Quantity" is the total of quantity shipped from a sale.
What I want to achieve is if, an adjustment is made which reduces the InStock figure to be below 0, for there to be a pop up. I presume there would be something which needs to be added to the VBA code in the adjustment form?
I also want the same to happen if there is a sale of an item.
Sorry if I haven't been 100% clear, if you need any other information. Let me know. Or if you need me to send over the database with some test data.
Thanks in advance.