Run time error 3705 - Syntex error (Missing operator) in que

avan
3StarLounger
Posts: 223
Joined: 08 Oct 2017, 09:50

Re: Run time error 3705 - Syntex error (Missing operator) in

Post by avan »

Hi HansV,

I have attached my sample work. When i put <all> and search, there is no problem.
But, when i search by filtering, error prompt up.
Please assist me.

Thanks.
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78545
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Run time error 3705 - Syntex error (Missing operator) in

Post by HansV »

Thanks, that is helpful.

There are two problems:

1) The WhereCondition should not start with the word "WHERE", you only need to specify the condition itself.
2) The combo boxes filter on CompanyID and CountryID, but those fields are missing from the record source of frmsubClients, so you have to add those two fields.

See the attached version.
dbSearchExample.zip
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

avan
3StarLounger
Posts: 223
Joined: 08 Oct 2017, 09:50

Re: Run time error 3705 - Syntex error (Missing operator) in

Post by avan »

Hi HansV,

Thanks a lot. :clapping: