Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

insert help???

Status
Not open for further replies.

danarashad

Programmer
Nov 2, 2006
115
US
I am having trouble inserting into an access database.
<cfquery name="insert" datasource="#datasource#">
INSERT INTO noteLog (userID, note)
VALUES (#form.userID#,'#form.note#')
</cfquery>

the note field is a memo datatype. how do you insert into a memo datatype field. i've taking out the '' marks, nothing seems to work. help please!!!!
 
You should use cfqueryparam, but that's not the source of your problem.

I think Note may be a reserved word. Try renaming that column.
If you cannot rename it, try using brackets around the column name

Code:
..
INSERT INTO noteLog (userID, [note])
..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top