StuartDwight
Registered User.
- Local time
- Today, 11:40
- Joined
- Mar 22, 2001
- Messages
- 12
Dear all,
I am having some problems with an Insert Into command. I am trying to insert data into a SQL Server 2000 database using a Access 2002 front end, over a WAN.
My code is as follows:
DoCmd.RunSQL "INSERT INTO CORS_records_notes(ID,author,title,note_date,note)
VALUES(" & strID & "," & """" & strauthor & """" & "," & """" & strtitle & """" & "," & "#" & strnote_date & "#" & "," & """" & strNote & """" & ")"
The problem is the note field is a memo (I have used similar statements with success for date, text and number fields).
I have used the RunSQL for speed, it works using open recordset and AddNew.
If anyone can help that would be great.
Stuart.
I am having some problems with an Insert Into command. I am trying to insert data into a SQL Server 2000 database using a Access 2002 front end, over a WAN.
My code is as follows:
DoCmd.RunSQL "INSERT INTO CORS_records_notes(ID,author,title,note_date,note)
VALUES(" & strID & "," & """" & strauthor & """" & "," & """" & strtitle & """" & "," & "#" & strnote_date & "#" & "," & """" & strNote & """" & ")"
The problem is the note field is a memo (I have used similar statements with success for date, text and number fields).
I have used the RunSQL for speed, it works using open recordset and AddNew.
If anyone can help that would be great.
Stuart.