[mso] Access 2003: How To Trap Blank Spaces In A Text Field?
- From: Ray Shapp <ras45@xxxxxxxxxxxxx>
- To: mso@xxxxxxxxxxxxx
- Date: Thu, 13 Dec 2007 22:27:34 -0500
To All,
In Access 2003 reports, I want to treat a field that contains only one or more
blank spaces as a null value. It was suggested in a previous thread that I use
expressions such as the following:
NullValue: IIF([tablevalue] <> " ", [tablevalue])
or
NullValue: IIF(len([tablevalue]) >6, [tablevalue]))
I understand that the second expression above would not null out any field of
more than six characters. Please ignore that limitation.
Questions:
1. If I chose to use one of these expressions, where does it get inserted?
Would it be a property of a text box in the report or would it be a criterion
in a query from which a report would generate?
2. Would the Trim function return the null value if the field contains only
white space such as blank spaces and/or tabs?
I would appreciate seeing a short example of one of these methods in use.
For some reason, the Help system in my version of Access wants to go to a
Microsoft site for answers to any search I try. How do I get Access to draw
from the Help file on my local PC? Also, the size of the font returned from
the MS site is so tiny, I have to copy and paste it into Notepad in order to
read it. How do I change the font of Help messages? Holding Ctrl while rolling
the center wheel on my mouse does change displayed font sizes in MS Internet
Explorer and Firefox, but it doesn't affect font size in the Help messages.
Thank you for your help.
Ray Shapp
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, visit the group's homepage and use the dropdown
menu at the top. This will allow you to unsubscribe your email address or
change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to share files with the group, you must join our Yahoo sister group.
This group will not allow for posting of emails, but will allow you to join
and share problem files, templates, etc.:
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE
SHARING ONLY.
If you are using Outlook and you see a lot of unnecessary code in your email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************
- Follow-Ups:
- [mso] Re: Access 2003: How To Trap Blank Spaces In A Text Field?
- From: Thomas Hutchins
- References:
Other related posts:
- » [mso] Access 2003: How To Trap Blank Spaces In A Text Field?
- » [mso] Re: Access 2003: How To Trap Blank Spaces In A Text Field?
- » [mso] Re: Access 2003: How To Trap Blank Spaces In A Text Field?
- » [mso] Re: Access 2003: How To Trap Blank Spaces In A Text Field?
- » [mso] Re: Access 2003: How To Trap Blank Spaces In A Text Field?
- [mso] Re: Access 2003: How To Trap Blank Spaces In A Text Field?
- From: Thomas Hutchins