D
dwa
How does one create a VIEW in Access/Jet?
The Access Jet referrence implies that you can do this using the CREATE VIEW
statement:
=====
Syntax
CREATE VIEW view [(field1[, field2[, ...]])] AS selectstatement
The CREATE VIEW statement has these parts:
Part Description
view The name of the view to be created.
field1, field2 The name of field or fields for the corresponding
fields specified in selectstatement.
selectstatement A SQL SELECT statement. For more information, see
SELECT Statement.
===
But when I try "CREATE VIEW TestView AS select * from sometable" from an
Access Query Window, I get this error:
"Syntax error in CREATE TABLE statement"
Can anyone shed any light on this mystery?
Thanks,
-- dwa
The Access Jet referrence implies that you can do this using the CREATE VIEW
statement:
=====
Syntax
CREATE VIEW view [(field1[, field2[, ...]])] AS selectstatement
The CREATE VIEW statement has these parts:
Part Description
view The name of the view to be created.
field1, field2 The name of field or fields for the corresponding
fields specified in selectstatement.
selectstatement A SQL SELECT statement. For more information, see
SELECT Statement.
===
But when I try "CREATE VIEW TestView AS select * from sometable" from an
Access Query Window, I get this error:
"Syntax error in CREATE TABLE statement"
Can anyone shed any light on this mystery?
Thanks,
-- dwa