Maybe I didn't express my problem clearly, and I'm sorry for my poor
English.
In fact, I'd known that Query is the equivalent to View in MS-Access. And I
just wanna create a View/Query by writting SQL DDL statements, not by normal
operation.
However, I found that Jet SQL does not support the 'Create View' statement
after I had a try. And I was puzzled by whether it doest not support this
statement which was demanded in SQL Standard, or there is another
Jet-specific statement to create a View. Can anybody help me? Thanks a lot!
However, I found that Jet SQL does not support the 'Create View'
'JET SQL' has more features than the old SQL standard,
but fewer features than the new SQL standard. If you
want to use CREATE VIEW, you can't use 'JET SQL'.
Fortunately, JET also supports a dialect called 'ANSI SQL'.
To use the ANSI SQL dialect, you must use an ADO connection.
If you use DAO or the Access IDE, you get 'JET SQL'
rather than 'ANSI SQL'
'JET SQL' has more features than the old SQL standard,
but fewer features than the new SQL standard. If you
want to use CREATE VIEW, you can't use 'JET SQL'.
Fortunately, JET also supports a dialect called 'ANSI SQL'.
To use the ANSI SQL dialect, you must use an ADO connection.
If you use DAO or the Access IDE, you get 'JET SQL'
rather than 'ANSI SQL'
You could type into the debug window those commands.
In the debug window you can go:
CurrentProject.Connection.Execute "create view myview2 as select id from
tblFruits"
Not quite a interactive prompt window...but it does work!
The above also works well in code....
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.