S
Samantha
Is there any restriction with MsAccess database with inserting a text with
commas and parenthesis in the text ?
My sample Desc text is: "Side, Top, (10)+(1)"
I insert the same Desc text (with commas) into a SQL database and it worked
fine.
And I also tried the INSERT statement without the Desc text and it works
fine.
The error message simply says:
Run-time error '3134':
Syntax error into INSERT INTO statement
Here's my insert statement:
sql = "INSERT INTO [PanelPN] ( PartNumber, Rev, BSlot, CSlot,
DSlot, DateCreated, CreatedBy, Desc ) "
sql = sql & " VALUES ( '" & panelPN & "', 'A', '" & panelB & "',
'" & panelC & "', '" & panelD & "', #" & Now() & "#, '" & AlUser & "', '" &
panelDesc & "' ) "
db.Execute sql, dbFailOnError
Can anyone provide me with some pointers? Very much appreciated.
commas and parenthesis in the text ?
My sample Desc text is: "Side, Top, (10)+(1)"
I insert the same Desc text (with commas) into a SQL database and it worked
fine.
And I also tried the INSERT statement without the Desc text and it works
fine.
The error message simply says:
Run-time error '3134':
Syntax error into INSERT INTO statement
Here's my insert statement:
sql = "INSERT INTO [PanelPN] ( PartNumber, Rev, BSlot, CSlot,
DSlot, DateCreated, CreatedBy, Desc ) "
sql = sql & " VALUES ( '" & panelPN & "', 'A', '" & panelB & "',
'" & panelC & "', '" & panelD & "', #" & Now() & "#, '" & AlUser & "', '" &
panelDesc & "' ) "
db.Execute sql, dbFailOnError
Can anyone provide me with some pointers? Very much appreciated.