Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / January 2005

Tip: Looking for answers? Try searching our database.

Report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin - 09 Jan 2005 08:24 GMT
I have a report based on a query. some of the results in
the report come out as 0. I would like to change all 0
values to 1. please help!!
- 09 Jan 2005 16:16 GMT
hi,
In your query header that has the zeros put this:
yourQueryfield:Iff([YourQueryFiled]=0,1,[YourQueryField])

>-----Original Message-----
>I have a report based on a query. some of the results in
>the report come out as 0. I would like to change all 0
>values to 1. please help!!
>.
Duane Hookom - 09 Jan 2005 21:00 GMT
Minor correction, the function is IIf() not Iff().
Since this is displayed in a text box, you could use the Format property to
change the display of 0 to 1.

Signature

Duane Hookom
MS Access MVP

> hi,
> In your query header that has the zeros put this:
[quoted text clipped - 5 lines]
>>values to 1. please help!!
>>.
TimH - 19 Jan 2005 21:50 GMT
instead of
SELECT myfield
say
SELECT iif(myfield<>0,myfield,1) as myfield_

the "as" clause is necessary so that the result field name is
unambiguous, so you will have to change your report to reference
myfield_ instead of myfield.

Hope this helps,

Tim

> I have a report based on a query. some of the results in
> the report come out as 0. I would like to change all 0
> values to 1. please help!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.