Jun 10, 2001 #1 chubby Programmer Apr 28, 2001 278 US I seen a query that uses the word Trim... Example: Trim([FirstName] & " " & [LastName]) I just would like to know what is trim and why is it used???
I seen a query that uses the word Trim... Example: Trim([FirstName] & " " & [LastName]) I just would like to know what is trim and why is it used???
Jun 11, 2001 #2 Tim1 Programmer Mar 27, 2001 242 GB Hiya, TRIM is used to remove trailing spaces from a field: Assume that in your query, the values were: FirstName = 'Tony ' LastName = 'Blair ' Then FirstName &" "& [LastName] would give 'Tony Blair ' Whereas: Trim([FirstName] & " " & [LastName]) would give 'Tony Blair' Tim Upvote 0 Downvote
Hiya, TRIM is used to remove trailing spaces from a field: Assume that in your query, the values were: FirstName = 'Tony ' LastName = 'Blair ' Then FirstName &" "& [LastName] would give 'Tony Blair ' Whereas: Trim([FirstName] & " " & [LastName]) would give 'Tony Blair' Tim
Jun 11, 2001 Thread starter #3 chubby Programmer Apr 28, 2001 278 US Thanks Tim, that answered my question and using an example was perfect. Thanks again... Upvote 0 Downvote