I created following query in SQL view:
Code:
SELECT a.customer, b.customer
FROM Orders AS a LEFT JOIN
(select customer from orders WHERE stuff="Turkey" AND
Year([orderdate])=2010) AS b
ON a.customer = b.customer
WHERE (((a.stuff)="Turkey") AND ((Year([a].[orderdate]))=2009) AND ((b.customer) Is Null));
Then I save and close it. When I open again, it was changed to ("()" has been change to "[]."):
Code:
SELECT a.customer, b.customer
FROM Orders AS a LEFT JOIN
[select customer from orders WHERE stuff="Turkey" AND
Year([orderdate])=2010]. AS b
ON a.customer = b.customer
WHERE (((a.stuff)="Turkey") AND ((Year([a].[orderdate]))=2009) AND ((b.customer) Is Null));
then, I have met these cases(sort from the best to the worst):
1 I close the query without any changing, it works fine;
2 I change something in the SQL view, save and close, it works fine;
3 I change something in the SQL view, but can't not save because of some error of JOIN, after I changed the []. to (), I can save and it works;
4 I change something in the SQL view, save and close, but it doesn't work because syntax error;
5 The query doesn't work because of "Syntax error in FROM clause", I need to modify it;
6 The query doesn't work because of "Syntax error in FROM clause", I can't open in design view because of "Syntax error in FROM clause"
Now I am in case 6, I can't modify it because I can't not design it. What shall I do? Is there a way to open directly in SQL view?