A
AimeeK via AccessMonster.com
Hello, I have a form with a combo box that is bound to a query. The query
contains these fields: Product Code, Description, and Status. The combo box
is bound to the Product Code field, in which a user will select a Product
Code, and the text box next to the combo box will automatically populate with
the Product Code's Description. This works wonderfully. However, if a user
selects a Product Code that is a Status 5, I need a message box to come up
saying something like "Item not allowed". (Status 5 items are discontinued
items in my company.) In words, how can I tell the combo box to check the
item's status field to see if it's Status 5? The combo box is named Text260
(switched from originally being a text box), and the query is called
qryProductandDescr. I know I probably will have to place code in some event
somewhere. Can anybody help? Thanks.
contains these fields: Product Code, Description, and Status. The combo box
is bound to the Product Code field, in which a user will select a Product
Code, and the text box next to the combo box will automatically populate with
the Product Code's Description. This works wonderfully. However, if a user
selects a Product Code that is a Status 5, I need a message box to come up
saying something like "Item not allowed". (Status 5 items are discontinued
items in my company.) In words, how can I tell the combo box to check the
item's status field to see if it's Status 5? The combo box is named Text260
(switched from originally being a text box), and the query is called
qryProductandDescr. I know I probably will have to place code in some event
somewhere. Can anybody help? Thanks.