I am new to forums. This is my first post ever. I have been playing with access databases for about 10 years and have survived using advice from forums and google.
I Wanted to go one step further.
Here is my question:
I have a table which has basic user information such as name, position and department followed by about 40 columns which contain yes/no values. It is a training database and boxes on a form are checked to confirm a course has been completed.
I want to be able to query the table and have the users select what field in the table to query based on the value in a combo box on a main menu form. I have created a separate table with the names of all the fields in the main table but I can't get the query to prompt for a specific column. I need to run queries on each column but don't want to created 40+ queries. I have created a basic function which references the combo box on my main menu and does provide the field name but it doesn't return any values. My query column head is Search Criteria: thefieldname() [The function I created] which does return the correct text so my query column shows Search Criteria: The correct field name, but it does not return any data.
Can any one help.
Thanks
Norbert/Keysrus
I Wanted to go one step further.
Here is my question:
I have a table which has basic user information such as name, position and department followed by about 40 columns which contain yes/no values. It is a training database and boxes on a form are checked to confirm a course has been completed.
I want to be able to query the table and have the users select what field in the table to query based on the value in a combo box on a main menu form. I have created a separate table with the names of all the fields in the main table but I can't get the query to prompt for a specific column. I need to run queries on each column but don't want to created 40+ queries. I have created a basic function which references the combo box on my main menu and does provide the field name but it doesn't return any values. My query column head is Search Criteria: thefieldname() [The function I created] which does return the correct text so my query column shows Search Criteria: The correct field name, but it does not return any data.
Can any one help.
Thanks
Norbert/Keysrus