AndrewMozley
Programmer
I have a table of suppliers which includes two fields, supp_code C(4) and supp_desc C(30). A table of products includes a field prod_scode, which identifies the associated supplier, or it may be blank.
On the form for maintaining the product table there is a combo to allow display and selection of the supplier code. Its Rowsource is supplier.supp_code, supp_desc and its Controlsource is product.scode. On this form there is also a textbox to display the supplier-name; its Controlsource is supplier.supp_desc.
This generally works fine; when the form is located on a particular product, the description of its related supplier is displayed.
What is the best way of handling cases where the prod_scode field is blank - either by the user typing a blank into the combo to change it, or when a particular product is retrieved. In these cases I want the supplier-name textbox on the form to be blank.
Thank you.
On the form for maintaining the product table there is a combo to allow display and selection of the supplier code. Its Rowsource is supplier.supp_code, supp_desc and its Controlsource is product.scode. On this form there is also a textbox to display the supplier-name; its Controlsource is supplier.supp_desc.
This generally works fine; when the form is located on a particular product, the description of its related supplier is displayed.
What is the best way of handling cases where the prod_scode field is blank - either by the user typing a blank into the combo to change it, or when a particular product is retrieved. In these cases I want the supplier-name textbox on the form to be blank.
Thank you.