Hi,
I am using Access 2002. For a query, I wrote:
Select m.ID, m.Name,
Check1 = case when m.ID in (SELECT m1.ID FROM merge m1 Where m1.check_code = '1') Then 1 Else 0 End
From merge m;
The error message is:
Syntax error (missing operator) in query expression 'Check1 = case when m.ID in (SELECT m1.ID FROM merge m1 Where m1.check_code = '1') Then 1 Else 0 End
Check1 is a new field I added to the query. Can someone tell me what's wrong?
Thanks
I am using Access 2002. For a query, I wrote:
Select m.ID, m.Name,
Check1 = case when m.ID in (SELECT m1.ID FROM merge m1 Where m1.check_code = '1') Then 1 Else 0 End
From merge m;
The error message is:
Syntax error (missing operator) in query expression 'Check1 = case when m.ID in (SELECT m1.ID FROM merge m1 Where m1.check_code = '1') Then 1 Else 0 End
Check1 is a new field I added to the query. Can someone tell me what's wrong?
Thanks