P
Paul
I create the following update query and show it in SQL view. I want to copy
this to use in a sub routine and like to change some of the static Text to
variable. Thanks
UPDATE Tbl_Search_Result SET Tbl_Search_Result.ProjectTitleKeywords =
IIf(IsNull(Tbl_Search_Result!ProjectTitleKeywords),"Cancer",Tbl_Search_Result!ProjectTitleKeywords
& "; " & "Cancer")
WHERE (((Tbl_Search_Result.ProjectTitle) Like "*Cancer*"));
"*Cancer*" will become a variable called strSearch
this to use in a sub routine and like to change some of the static Text to
variable. Thanks
UPDATE Tbl_Search_Result SET Tbl_Search_Result.ProjectTitleKeywords =
IIf(IsNull(Tbl_Search_Result!ProjectTitleKeywords),"Cancer",Tbl_Search_Result!ProjectTitleKeywords
& "; " & "Cancer")
WHERE (((Tbl_Search_Result.ProjectTitle) Like "*Cancer*"));
"*Cancer*" will become a variable called strSearch