JimmyG
Registered User.
- Local time
- Today, 02:00
- Joined
- Aug 3, 2004
- Messages
- 37
My database contains an Orders form, from this form the user can select which customer has placed an order using a lookup from the Customers table.
The Orders form also contains a subform, named OrderDetails on which the order details are entered. From this subform the user can select the item that has been ordered. No two customers can order the same item as they are personalised but a customer can order the item every week. The Items are entered on a separate table which stores the item name and the CustomerID.
The problem is that items for different customers can have very similar names leading to the user selecting the wrong item from the list, this then affects reports, which are based on order details.
I would like to be able to limit the list of items available in the order subform item dropdown box dependent on which customer is selected on the main orders form, i.e. only allow items for that customer to be displayed.
Can anyone suggest how I can do this?
At the moment the dropdown box uses a lookup from the item table which list every item in the database.
The Orders form also contains a subform, named OrderDetails on which the order details are entered. From this subform the user can select the item that has been ordered. No two customers can order the same item as they are personalised but a customer can order the item every week. The Items are entered on a separate table which stores the item name and the CustomerID.
The problem is that items for different customers can have very similar names leading to the user selecting the wrong item from the list, this then affects reports, which are based on order details.
I would like to be able to limit the list of items available in the order subform item dropdown box dependent on which customer is selected on the main orders form, i.e. only allow items for that customer to be displayed.
Can anyone suggest how I can do this?
At the moment the dropdown box uses a lookup from the item table which list every item in the database.