English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have an Access Database and want to create a view. When I try it, I get the error message "Syntax error in CREATE TABLE ", although the help file says Access supports the CREATE VIEW command.
Just to check it, I used a very simple command: "CREATE VIEW activityView AS SELECT * FROM activity;", but Access wouldn't do it, not from the Query window, and not with DoCmd.RunSQL from a VBA procedure. How can I do it?

2007-02-14 20:07:24 · 2 answers · asked by Rumtscho 3 in Computers & Internet Programming & Design

CREATE VIEW filteredActivity(*)... doesn't work either, just tried it

2007-02-14 20:21:53 · update #1

2 answers

You should list all columns (fields), for example:

CREATE VIEW activityView(a,b,c,...) AS SELECT * FROM activity

2007-02-14 21:19:50 · answer #1 · answered by Serge M 6 · 0 0

The problem is u have to declare arguments for the view...

(eg)

create view mgr(*) as
select * from employee,manages
where employee.name=manages.mgrname;

2007-02-14 20:15:17 · answer #2 · answered by KillingJoke 3 · 0 0

fedest.com, questions and answers