LaughingDev
New Member
- Joined
- Sep 12, 2011
- Messages
- 12
Hi all,
Ive been working on a simple Access database system for a small business which buys/sells goods. Im currently trying to develop stock control on the CreateOrder form.
The database is similar to the Northwind example, it has 4 tables thus far: Customers, Products, Orders & OrderDetails. ATM the products table simply has a StockLevel field which is being updated by several queries, one upon completion of an order, one for making stock purchases, and one at cancellation of an order.
The CreateOrder form has a OrderDetails subform from which users are able to select the products using a combobox. The combobox uses lookup to show the ProductName(col1) and StockLevel(col5).
What I would like is to have the form not allow users to select Products for which the StockLevel is 0, a MsgBox on the afterupdate event would be ideal as well. However I am not sure whether this is possible to do and how I would go about doing so.
Any help or advice on this would be much appreciated. Thanks in advance.
Ive been working on a simple Access database system for a small business which buys/sells goods. Im currently trying to develop stock control on the CreateOrder form.
The database is similar to the Northwind example, it has 4 tables thus far: Customers, Products, Orders & OrderDetails. ATM the products table simply has a StockLevel field which is being updated by several queries, one upon completion of an order, one for making stock purchases, and one at cancellation of an order.
The CreateOrder form has a OrderDetails subform from which users are able to select the products using a combobox. The combobox uses lookup to show the ProductName(col1) and StockLevel(col5).
What I would like is to have the form not allow users to select Products for which the StockLevel is 0, a MsgBox on the afterupdate event would be ideal as well. However I am not sure whether this is possible to do and how I would go about doing so.
Any help or advice on this would be much appreciated. Thanks in advance.