I am sure that this a topic that has been covered a hundred times, but I am having trouble getting the syntax correct. I watched the recommended video and got a good idea how to do what I want, but I am having trouble taking it all the way. The video was http://www.datapigtechnologies.com/flashfiles/searchform.html
Basically, I need to query a different column based on the value of a textbox. The textbox value is the name of the column that needs to be queried. I can't quite figure out how to do it. I tried to put the expression in the "field" portion of the query but it doesn't seem to like it. Basically, the query needs to run in the appropriate column based off of [forms]![welcome].[txtHiddenReportSelect]. Does this go in the field? Do I need to concatenate "Contacts" onto the hidden field and return the whole string as the "field"? Or is there a way to use the "criteria" field to do this?
Thanks in advance, and let me know if I am not clear enough.
Basically, I need to query a different column based on the value of a textbox. The textbox value is the name of the column that needs to be queried. I can't quite figure out how to do it. I tried to put the expression in the "field" portion of the query but it doesn't seem to like it. Basically, the query needs to run in the appropriate column based off of [forms]![welcome].[txtHiddenReportSelect]. Does this go in the field? Do I need to concatenate "Contacts" onto the hidden field and return the whole string as the "field"? Or is there a way to use the "criteria" field to do this?
Thanks in advance, and let me know if I am not clear enough.