I've created a form with a combo box which finds records based on the selection in the normal wizard way, which works fine and does the job to an extent. I would like to add extra functionaliy to this. Could the combo box also run a query so it only shows values that are the result of the query?
For example, I have 2 tables which are linked in a one to many relationship. I want to query tbl.checktype and display all checknames (field in this table) in the combo box, so it shows all checks with that checkname. This it does successfully using the standard find records in database and display feature in combo box wizard. But i would like it to query on checknames where the team (also a field in tbl.checktype) ="helpdesk", then shows those values in its dropdown (not all checknames in the table as it does previously).
I created a SQL query to display the checknames belonging to the helpdesk team but how can this be added to the combox box feature on the form so the combo box displays the query results in the dropdown, and does its usual job and displays records matching the checkname on the form. Hope this makes sense and you can help me solve this frustrating issue. Any queries please ask.
For example, I have 2 tables which are linked in a one to many relationship. I want to query tbl.checktype and display all checknames (field in this table) in the combo box, so it shows all checks with that checkname. This it does successfully using the standard find records in database and display feature in combo box wizard. But i would like it to query on checknames where the team (also a field in tbl.checktype) ="helpdesk", then shows those values in its dropdown (not all checknames in the table as it does previously).
I created a SQL query to display the checknames belonging to the helpdesk team but how can this be added to the combox box feature on the form so the combo box displays the query results in the dropdown, and does its usual job and displays records matching the checkname on the form. Hope this makes sense and you can help me solve this frustrating issue. Any queries please ask.