D
Developer 2003
Hi, I have these simple statements, cmd has been defined already:
cmd.CommandText = "CREATE TABLE Server_Size ( " & _
"Server_Size_ID AutoIncrement Primary Key, " & _
"Size Text(50) NOT NULL" & _
")"
cmd.Execute
When I run the VBA statements, I got "Syntax error in field definition". I know the cause of this problem is the column name "Size" (i.e. changing "Size" to "Size_1" will solve the problem). However, if I create run the SQL statement as an Access 2000 query, the table will be created. Is this an Access VBA bug? Does anyone know how to resolve this problem? Thanks.
cmd.CommandText = "CREATE TABLE Server_Size ( " & _
"Server_Size_ID AutoIncrement Primary Key, " & _
"Size Text(50) NOT NULL" & _
")"
cmd.Execute
When I run the VBA statements, I got "Syntax error in field definition". I know the cause of this problem is the column name "Size" (i.e. changing "Size" to "Size_1" will solve the problem). However, if I create run the SQL statement as an Access 2000 query, the table will be created. Is this an Access VBA bug? Does anyone know how to resolve this problem? Thanks.