Getting an error when using Trim in Form Control
I tried to find help in the search but couldn’t find much or I don’t know the proper Syntax criteria to get more than what I have below.
I am rather new to MS Access Forms and need proper Syntax for an issue I am having in a MS Access 2003 Form.
I need to trim leading and trailing spaces from text coming from a control box called "Comment". I don't want someone to be able to just insert blank spaces and call it a comment!
Normally in my web developing I use:
Trim(#Form.Comment#)
[#whatever# Indicates a ColdFusion Variable] in my CFM pages. But I am trying to use Trim in a MS Access 2003 / Table Control.
I found several forum references to using this syntax in the text box's Control Source:
=Trim([Comment])
But I get an #error message in the Comment text box.
Another reference said to use the code above but change the control's "Name" to "CommentTrim". That got rid of the error message but would not allow me to enter anything in the box.
Does anyone have any suggestions?
Thanks!
I tried to find help in the search but couldn’t find much or I don’t know the proper Syntax criteria to get more than what I have below.
I am rather new to MS Access Forms and need proper Syntax for an issue I am having in a MS Access 2003 Form.
I need to trim leading and trailing spaces from text coming from a control box called "Comment". I don't want someone to be able to just insert blank spaces and call it a comment!
Normally in my web developing I use:
Trim(#Form.Comment#)
[#whatever# Indicates a ColdFusion Variable] in my CFM pages. But I am trying to use Trim in a MS Access 2003 / Table Control.
I found several forum references to using this syntax in the text box's Control Source:
=Trim([Comment])
But I get an #error message in the Comment text box.
Another reference said to use the code above but change the control's "Name" to "CommentTrim". That got rid of the error message but would not allow me to enter anything in the box.
Does anyone have any suggestions?
Thanks!
