Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Syntax Error help
I'm blanking out right now........I'm receiving a syntax error message when I
run this statement... cnn.Execute _ "CREATE TABLE tblOutput(" & _ & Field1 & "VARCHAR NOT NULL," & _ & Field2 & "VARCHAR(20) NOT NULL," & _ & Field3 & "VARCHAR(20) NOT NULL)" Field1, Field2, Field3 are variables. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Syntax Error help
Drop the extra ampersands (&) and add spaces before VARCHAR.. ??
cnn.Execute _ "CREATE TABLE tblOutput(" & _ Field1 & " VARCHAR NOT NULL, " & _ Field2 & " VARCHAR(20) NOT NULL, " & _ Field3 & " VARCHAR(20) NOT NULL)" "Markantesp" wrote: I'm blanking out right now........I'm receiving a syntax error message when I run this statement... cnn.Execute _ "CREATE TABLE tblOutput(" & _ & Field1 & "VARCHAR NOT NULL," & _ & Field2 & "VARCHAR(20) NOT NULL," & _ & Field3 & "VARCHAR(20) NOT NULL)" Field1, Field2, Field3 are variables. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Syntax error | Excel Discussion (Misc queries) | |||
syntax error - help | Excel Discussion (Misc queries) | |||
Syntax error Q | Excel Programming | |||
Syntax error. | Excel Programming | |||
Syntax Error Runtime Error '424' Object Required | Excel Programming |