Hi
I have the following SQL from Mysql and I would like to run it thru ASP+Access
strsql = "select t.* from forum_post p, forum_thread t where p.thread_id=t.thread_id and (0 or (p.post_message LIKE '%test%' or t.thread_subject Like '%test%')) GROUP BY t.tid Order by thread_date DESC"
When I run this query, I got "Cannot group on fields selected with '*' (t)."
How can I make it to work for Access MDB? thanks
Somebody suggested me :
Select forum_thread.* where forum_post.post_message like '%test%' or forum_thread.thread_subject like '%test%' from forum_post inner join forum_post on forum_thread.thread_id=forum_post.thread_id
But it doesn't work as well, error message for this is:
Syntax error in query expression 'forum_thread.* where forum_post.post_message like '%test%' or forum_thread.thread_subject like '%test%''.