Hopefully someone will be able to tell me what I am doing wrong here. First here is my table layout:
CONTACTLOG TABLE
FIELD NAME - DATE TYPE - DESCRIPTION
contactLogID - AutoNumber - Priamry Key for comment table
id - Number - foreign key
Date - Date/Time - Date when comment was entered
DebtAgent - Text - Name of the agent
Method - Text - Was it a call/email/letter
reasonForCall - Text - Summary of reason for calling
txtLog - Memo - comments
From my VBA code I am trying to execute this SQL insert command:
When it tries to run this command, I get this error:
Run-time error '3134':
Syntax error in INSERT INTO statement.
Does anyone have any ideas what I am messing up here? Is it the time or something? It seems like it should be right. I checked out some existing values already in the table and they look like this:
1/17/2008 11:50:30 AM
Or do you think it's something to do with the AutoNumber for the contactLogID field?
I'm at a loss! Help please!
Thanks
-Mark
CONTACTLOG TABLE
FIELD NAME - DATE TYPE - DESCRIPTION
contactLogID - AutoNumber - Priamry Key for comment table
id - Number - foreign key
Date - Date/Time - Date when comment was entered
DebtAgent - Text - Name of the agent
Method - Text - Was it a call/email/letter
reasonForCall - Text - Summary of reason for calling
txtLog - Memo - comments
From my VBA code I am trying to execute this SQL insert command:
Code:
INSERT INTO contactLog (id, Date, DebtAgent, Method, reasonForCall, txtLog) VALUES (53, "1/18/2008 9:54:21 PM", "Mark", "Letter", "test", "test")
When it tries to run this command, I get this error:
Run-time error '3134':
Syntax error in INSERT INTO statement.
Does anyone have any ideas what I am messing up here? Is it the time or something? It seems like it should be right. I checked out some existing values already in the table and they look like this:
1/17/2008 11:50:30 AM
Or do you think it's something to do with the AutoNumber for the contactLogID field?
I'm at a loss! Help please!
Thanks
-Mark