|
Frank Smith -> RE: SQL INSERT Syntax ?? (9/16/2002 13:28:51)
|
Using the following syntax: INSERT INTO history (dispatcher,phone,amcrew,pmcrew,amtow,pmtow,instructor,instruct2,ipilot) VALUES (' ::dispatcher::' ,' ::phone::' ,' ::amcrew::' ,' ::pmcrew::' ,' ::amtow::' ,' ::pmtow::' ,' ::instructor::' ,' ::instruct2::' ,' ::ipilot::' ) WHERE (xdate < date()-30) On Verify, I get: Server error: Unable to retrieve schema information from the query: INSERT INTO history (dispatcher,phone,amcrew,pmcrew,amtow,pmtow,instructor,instruct2,ipilot) VALUES ' 1' ,' 2' ,' 3' ,' 4' ,' 5' ,' 6' ,' 7' ,' 8' ,' 9' ) WHERE (xdate < date()-30) against a database using the connection string DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=data/sched.mdb. The following error message comes from the database driver software; it may appear in a different language depending on how the driver is configured. ------------------------------------------------------- [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement. Source: Microsoft OLE DB Provider for ODBC Drivers Number: -2147217900 (0x80040e14) Seems that it does not like my WHERE clause. Took out the WHERE and it Validated ??
|
|
|
|