Hi Guys, i really need a hand with this, I am trying to search multiple tables for a string match using the following SQL statement, it returns 0 records and I have no idea why ....
table1 = "teaokori"
table2 = "news"
SQL = "SELECT title AS one, LongDesc AS two, '"&table1&"' AS TableName "
SQL = SQL & "FROM teaokori WHERE (teaokori.LongDesc Like '%" & searchstring & "%') UNION ALL "
SQL = SQL & "SELECT title AS one, article AS two, '"&table2&"' AS TableName "
SQL = SQL & "FROM News WHERE (News.Article Like '%" & searchstring & "%');"
anyone got and suggestions?
table1 = "teaokori"
table2 = "news"
SQL = "SELECT title AS one, LongDesc AS two, '"&table1&"' AS TableName "
SQL = SQL & "FROM teaokori WHERE (teaokori.LongDesc Like '%" & searchstring & "%') UNION ALL "
SQL = SQL & "SELECT title AS one, article AS two, '"&table2&"' AS TableName "
SQL = SQL & "FROM News WHERE (News.Article Like '%" & searchstring & "%');"
anyone got and suggestions?