NatuScape
02-25-2003, 01:44 PM
Hello!!
I am trying to polish up an SQL query to insert into a table and I want to include the timestamp of when the record was added. I finally got the adding the date thing working, and now the time won't work!!!
Here's the SQL string I'm sending to the server:
INSERT INTO Results (Key,Initiator,Description,CorrActDate,Site,Division,Department,Area,Origin,Type,ResponsiblePerson,E mail,User_name,CorrActApproval,CompletionVerification,Remote_computer_name,Browser_type,Timestamp) VALUES ('03-032','::Initiator::','::Description::',#2/25/2003#,'::Site::','::Division::','::Department::','::Area::','::Origin::','::Type::','::ResponsiblePe rson::','::Email::','::User_name::','No','No','::Remote_computer_name::','::Browser_type::',#14:34#)
And here's the error I get:
Database Results Error
Description: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
Number: -2147217900 (0x80040E14)
Source: Microsoft OLE DB Provider for ODBC Drivers
One or more form fields were empty. You should provide default values for all form fields that are used in the query.
Help, pleaseeee!!!!!!!! Thank you!!!!
Natalia
I am trying to polish up an SQL query to insert into a table and I want to include the timestamp of when the record was added. I finally got the adding the date thing working, and now the time won't work!!!
Here's the SQL string I'm sending to the server:
INSERT INTO Results (Key,Initiator,Description,CorrActDate,Site,Division,Department,Area,Origin,Type,ResponsiblePerson,E mail,User_name,CorrActApproval,CompletionVerification,Remote_computer_name,Browser_type,Timestamp) VALUES ('03-032','::Initiator::','::Description::',#2/25/2003#,'::Site::','::Division::','::Department::','::Area::','::Origin::','::Type::','::ResponsiblePe rson::','::Email::','::User_name::','No','No','::Remote_computer_name::','::Browser_type::',#14:34#)
And here's the error I get:
Database Results Error
Description: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
Number: -2147217900 (0x80040E14)
Source: Microsoft OLE DB Provider for ODBC Drivers
One or more form fields were empty. You should provide default values for all form fields that are used in the query.
Help, pleaseeee!!!!!!!! Thank you!!!!
Natalia