Hopefully that subject is accurate.
I have a Form that is populated off Table A. Table A has employee information (name, department, store, date of hire, etc). The store field holds the store's code number, which is related to Table B which has the store code number and the store's name and address.
The form has three optional search criteria boxes (which I picked up from http://allenbrowne.com/ser-62.html). Depending on what search criteria is selected by the user, the form filters the records. One of these search boxes is used to locate a store (this is a combo box).
When the store search box is selected it displays the store's name and not its code number. However, in the result boxes it displays the store's code number (this is because the results are from Table A, and the store field in Table A only stores the code number).
I need the result box to show the store name not it's number. The only method I could get working was using a DLookup function, but this is slow (all the other fields appear while the store field populates a split second later), and it displays #Error when no selection is made in the Store search box.
I also tried making a query that returns the store's name based off the selection in the store search box. When I set the store's result textbox to this query it just gives a #Name error.
Any ideas how to do this?
I have a Form that is populated off Table A. Table A has employee information (name, department, store, date of hire, etc). The store field holds the store's code number, which is related to Table B which has the store code number and the store's name and address.
The form has three optional search criteria boxes (which I picked up from http://allenbrowne.com/ser-62.html). Depending on what search criteria is selected by the user, the form filters the records. One of these search boxes is used to locate a store (this is a combo box).
When the store search box is selected it displays the store's name and not its code number. However, in the result boxes it displays the store's code number (this is because the results are from Table A, and the store field in Table A only stores the code number).
I need the result box to show the store name not it's number. The only method I could get working was using a DLookup function, but this is slow (all the other fields appear while the store field populates a split second later), and it displays #Error when no selection is made in the Store search box.
I also tried making a query that returns the store's name based off the selection in the store search box. When I set the store's result textbox to this query it just gives a #Name error.
Any ideas how to do this?