View can be created in Access 2000? [closed]
In Access 2000, can we create views?
Yes.
SQL Server Views are called Queries in Access.
The usual way in Access to use code to create a saved query is to use DAO to create a saved QueryDef. Something like this:
Dim db As DAO.Database
Dim qdf As DAO.QueryDef
Set db = CurrentDb
Set qdf = db.CreateQueryDef("MyQuery", "SELECT * FROM MyTable;")
Set qdf = Nothing
Set db = Nothing
That will work in all versions of Access with a DAO reference.
"The CREATE VIEW and DROP VIEW statements can be executed only through the Jet OLE DB provider and ADO...". Taken from: http://msdn.microsoft.com/en-us/library/aa139977(v=office.10).aspx#acadvsql_views
精彩评论