I have a table with multiple text fields. Each one is set to 50 text string characters long (the default). The weird thing is that with some (not all) of the text fields no matter how long the actual text values are, 'Access' decides to add space characters to the end. For instance...
Lets say I enter a value into say [Field1] of:
"abc"
Once I lose focus from [Field1] in datasheet view I found that when I go back to it that that it has been appended with 47 spaces. So the actual value of [Field1] is:
"abc "
(I think thats 47 spaces!?)
This seems very quirky to me and is a hassle when performing string comparisons; I keep having to use the Trim() function to ensure my code works as I intended it to. Is there something I am missing? A simple field to toggle perhaps?? I thought that maybe I accidentally entered spaces in by mistake but after maticulous attempts to ammend it....I gave up!
In any event, I would appreciate if anyone out there can solve my frustrating dilemma.
Shann
Lets say I enter a value into say [Field1] of:
"abc"
Once I lose focus from [Field1] in datasheet view I found that when I go back to it that that it has been appended with 47 spaces. So the actual value of [Field1] is:
"abc "
(I think thats 47 spaces!?)
This seems very quirky to me and is a hassle when performing string comparisons; I keep having to use the Trim() function to ensure my code works as I intended it to. Is there something I am missing? A simple field to toggle perhaps?? I thought that maybe I accidentally entered spaces in by mistake but after maticulous attempts to ammend it....I gave up!
In any event, I would appreciate if anyone out there can solve my frustrating dilemma.
Shann