M
mario
I want to get the user input and use that string to search if it occurs in
any part of three columns in the table.
For example,
Select ID, Survey_01, Survey_02, Survey_03, ([Enter SurveyNum to be
searched]) As FindSurveyNum Where Instr(Survey_01, FindSurveyNum) > 0 OR
Instr(Survey_02, FindSurveyNum) > 0 OR Instr(Survey_03, FindSurveyNum) > 0
When I executed the above example, it prompts for "Enter SurveyNum to be
searched" multiple times. Is there a way where I could be prompted only once
and use that search string for querrying different columns in the table.
Thanks
any part of three columns in the table.
For example,
Select ID, Survey_01, Survey_02, Survey_03, ([Enter SurveyNum to be
searched]) As FindSurveyNum Where Instr(Survey_01, FindSurveyNum) > 0 OR
Instr(Survey_02, FindSurveyNum) > 0 OR Instr(Survey_03, FindSurveyNum) > 0
When I executed the above example, it prompts for "Enter SurveyNum to be
searched" multiple times. Is there a way where I could be prompted only once
and use that search string for querrying different columns in the table.
Thanks