Dear All
I am trying to do a search function for an entire site based on an Access Database. I have already created a search functionality from particular tables, like for example from the FAQ table:-
if category = "FAQ" then
sqlSearch="SELECT * from FAQ "
sqlSearch = sqlSearch & " WHERE faqQuest LIKE " & "'" & "%" & KillQuotes(searchField) & "%" & "'"
sqlSearch = sqlSearch & " OR faqAns LIKE " & "'" & "%" & KillQuotes(searchField) & "%" & "'"
sqlSearch = sqlSearch & " ORDER BY faqQuest ASC"
'response.Write(sqlSearch)
rsSearch.Open (sqlSearch)
end if
However now I wish to do an entire site search from all the tables in the database.
Can you help me out on how to do it please.
Thanks for your help and time
I am trying to do a search function for an entire site based on an Access Database. I have already created a search functionality from particular tables, like for example from the FAQ table:-
if category = "FAQ" then
sqlSearch="SELECT * from FAQ "
sqlSearch = sqlSearch & " WHERE faqQuest LIKE " & "'" & "%" & KillQuotes(searchField) & "%" & "'"
sqlSearch = sqlSearch & " OR faqAns LIKE " & "'" & "%" & KillQuotes(searchField) & "%" & "'"
sqlSearch = sqlSearch & " ORDER BY faqQuest ASC"
'response.Write(sqlSearch)
rsSearch.Open (sqlSearch)
end if
However now I wish to do an entire site search from all the tables in the database.
Can you help me out on how to do it please.
Thanks for your help and time