Ok, It seems that I am hitting a wall here writing some queries to analyze this mdb I was given to fix up...
...works fine, but removing the NOT in NOT LIKE...
Does not...
Is there something fundamental I am missing as to why some valid sql queries work, and some do not? I tried it against a query and a proper table and the results are the same. This works both ways (using tables not queries) in SQL Server, so I know the syntax is ok.
Is there some manual about what sql queries that access doesn't support? Is there a way to have access return an error rather than no records for queries it can't run?
Please - I am not slagging access, just trying to understand what is going on.
Thanks!
-Matt G.
Code:
SELECT *
FROM qryMGG_CustomersNotTrends
WHERE customers.username not like '%@%';
...works fine, but removing the NOT in NOT LIKE...
Code:
SELECT *
FROM qryMGG_CustomersNotTrends
WHERE customers.username like '%@%';
Does not...
Is there something fundamental I am missing as to why some valid sql queries work, and some do not? I tried it against a query and a proper table and the results are the same. This works both ways (using tables not queries) in SQL Server, so I know the syntax is ok.
Is there some manual about what sql queries that access doesn't support? Is there a way to have access return an error rather than no records for queries it can't run?
Please - I am not slagging access, just trying to understand what is going on.
Thanks!
-Matt G.