A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Eliminating Blank Fields from reports



 
 
Thread Tools Display Modes
  #1  
Old December 20th, 2009, 02:47 PM posted to microsoft.public.access.reports
Steve
external usenet poster
 
Posts: 2,662
Default Eliminating Blank Fields from reports

Greetings:

Using the "+" to peform a "null propagation" as outlined in
http://office.microsoft.com/en-us/ac...494721033.aspx
by Sal Ricciardi does not seem to work when the data is numeric. Is there a
work around for this?

For example:
=Trim([chrDataAlways] & ("; "+[chrDataSometimes]))
where chrDataSometimes is text data. This works!

=Trim([chrDataAlways] & ("; "+[intDataSometimes]))
where intDataSometimes is numeric data. This produces an error).

Thanks for any help.

--
Steve
  #2  
Old December 20th, 2009, 03:48 PM posted to microsoft.public.access.reports
Allen Browne
external usenet poster
 
Posts: 11,706
Default Eliminating Blank Fields from reports

Use Str() around the numeric field:
=Trim([chrDataAlways] & ("; "+Str([intDataSometimes])))

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"Steve" wrote in message
...
Greetings:

Using the "+" to peform a "null propagation" as outlined in
http://office.microsoft.com/en-us/ac...494721033.aspx
by Sal Ricciardi does not seem to work when the data is numeric. Is there
a
work around for this?

For example:
=Trim([chrDataAlways] & ("; "+[chrDataSometimes]))
where chrDataSometimes is text data. This works!

=Trim([chrDataAlways] & ("; "+[intDataSometimes]))
where intDataSometimes is numeric data. This produces an error).

Thanks for any help.

--
Steve


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.