CREATE PROCEDURE

  • Thread starter Thread starter Vladimir
  • Start date Start date
V

Vladimir

Hello,

When I try to execute the following statement in Query Designer:

CREATE PROCEDURE RWUInsert val1 integer, val2 integer as insert into
regwateruse (regid, year) values(val1, val2);

I get the following error:

"Syntax error in CREATE TABLE statement."

What is the problem?

Regards,
Vladimir.
 
Hi,


In the immediate debug window, cut and paste the following:


CurrentProject.Connection.Execute"CREATE PROCEDURE RWUInsert (val1 integer,
val2 integer) as insert into regwateruse (regid, [year]) values(val1, val2)
"



Two observations:
- MOST Jet 4.0 extensions do not work in the query
designer, neither with DAO,
- Year is a reserved word, I have to use [year] to
indicate a field, in this context.



Hoping it may help,
Vanderghast, Access MVP
 
Back
Top