View Single Post
  #12  
Old July 26th, 2007, 12:59 AM posted to microsoft.public.access.reports
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Decimal places..

If you are saying that your underlying data has rows for which you don't
want to see the row if the field is zero, use the selection criterion to
exclude those rows.

If you want to set a value of 0 in a field to Null, you could use an
expression something like:
NewValue: IIF([YourField]=0, Null,[YourField])

Regards

Jeff Boyce
Microsoft Office/Access MVP


"stephendeloach via AccessMonster.com" u32891@uwe wrote in message
news:75b3f53f6baca@uwe...
Sorry. Yes it is in a Report that I dont need the 0's to show. Show what
would I need to put in the query in order not to show the 0's? Thanks

Jeff Boyce wrote:
Your original post mentioned a "form", but you've posted in a "reports"
newsgroup. I'll assume you are talking about a report definition.

You could do the 0 == nothing conversion in a query you use to feed the
report, or you could use the report's OnFormat event to have Access
decide,
for each detail record, what value to place in that textbox control. I'd
probably go with the former, so that the data coming into the report is
already cleaned up.

Regards

Jeff Boyce
Microsoft Office/Access MVP

When i change it, it works fine but it also shows 0. I need it to show a
blank when there is a 0..

[quoted text clipped - 11 lines]
18.0
Thanks


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200707/1