I think nicsin is right. Access allows you to create a query that you can then use like a table in another query. This is normally called a view in relational databases - and the on-line documentation says CREATE VIEW is valid but only for Jet databases.
I was already trying the CREATE VIEW before but indeed it does not create a QUERY in Access. Nicsin had the good idea to try if the view is hidden somewhere. Apparently, it is the case, so thank you. Good idea!
But... (there is always a but)
I try the command : CREATE VIEW view1 as SELECT * FROM table1 ORDER BY var1. And surprise! I get the following error message : "Only simple SELECT queries are allowed in VIEWS". Argh...
For the order stuff, you right, but I have much more complex queries with plenty of LEFT JOIN. By removing the ORDER BY in these complex queries and creating them, I don't get any error message. So we can suppose that the others commands are accepted. Nevertheless, my calling software is not very happy because of the false ordering. Hence, i can't verify (nor in Access nor in my software as it is) if the VIEW is OK. Tomorrow (I'm living in Europe), I will modify my soft to put the order in, but it will surely cost run time.
Anyway, thanks to all, especially nicsin who was very helpfull.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.