Comments field does not accept apostrophe
Does anyone know why my Comments field will not accept an apostrophe? It's just a memo field in Access. I have this same field in my other databases and it works fine with apostrophies. Here's what I have for the code on the first page:
<textarea name="Comments#ItemID#" cols="38" rows="2">#Trim(Comments)#</textarea>
Here's the code I have on the action page that inserts the Comments field into the database:
<cfquery Datasource="#application.DataSource#">
Update ECO_Items
Set <cfif isDefined("form.Comments#id#") and evaluate("form.Comments#id#") neq "">
Flag_Comments = #Evaluate("form.Flag_Comments#id#")#,
Comments='#Evaluate("form.Comments#id#")#'
<cfelse>
Flag_Comments = '',
Comments = ''
</cfif>
Where ItemID=#id#
</cfquery>
This inserts text, periods, commas, etc., and blank info. into the Comments field, but when I put an apostrophe in some text such as "It's fixed", it will not insert that. What would be causing this? How do I fix it?
Thanks.
Andy
