Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Anyone know whats wrong wit hthis insert into

LEGEND ,
Jul 20, 2006 Jul 20, 2006
commInsert.Execute("INSERT INTO customers(firstname,lastname) VALUES('" +
Replace(Command1__varOne, "'", "''") + "', '" + Replace(Command1__varTwo,
"'", "''") + "', " + Replace(Command1__varThree, "'", "''") + ") " ' Execute
the insert command

Getting this error

Microsoft VBScript compilation (0x800A03EE)
Expected ')'
commInsert.Execute("INSERT INTO customers(firstname,lastname) VALUES('" +
Replace(Command1__varOne, "'", "''") + "', '" + Replace(Command1__varTwo,
"'", "''") + "', " + Replace(Command1__varThree, "'", "''") + ") " ' Execute
the insert command
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------------------------------------------------------------^
Ta

Andy


TOPICS
Server side applications
257
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 21, 2006 Jul 21, 2006
LATEST
Can't tell exactly, since your lines are wrapping here in the forum. Howeve, the error message says it is expecting a close-paren, and you have an uneven number of parens in your code, so that would be my guess.

The carat should be pointing to the position at which the vbscript compiler was expecting the close-paren.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines