Hi,
I have two tables 1. Customer and 2. Location. Customer master contains Customer code,name, payment terms etc.. whereas, location contains customer Code, multiple locations, addresses and contact nos.
In data entry entry users put customer code, name displays and then cursor jump to a combo box which contains multiple location using the following sql:
Select location from customer where pcode = mpcode into cursor tmpCust order by Location. && mpcode is a variable for customer code
Now, where to put this SQL in lost focus event of text box of Customer code or Got focus event of the combo box of location. Because sometime I don't know what happened I receive an error and combo box disappear.
Please suggest
Thanks
Saif
I have two tables 1. Customer and 2. Location. Customer master contains Customer code,name, payment terms etc.. whereas, location contains customer Code, multiple locations, addresses and contact nos.
In data entry entry users put customer code, name displays and then cursor jump to a combo box which contains multiple location using the following sql:
Select location from customer where pcode = mpcode into cursor tmpCust order by Location. && mpcode is a variable for customer code
Now, where to put this SQL in lost focus event of text box of Customer code or Got focus event of the combo box of location. Because sometime I don't know what happened I receive an error and combo box disappear.
Please suggest
Thanks
Saif