This is a discussion on Converting Null Values to Zero within the Microsoft Access forums, part of the Databases category; Trying to change null data to zero using an iif statement. ultimately what I am trying to do is have ...
| |||||||
|
#1
| |||
| |||
| Trying to change null data to zero using an iif statement. ultimately what I am trying to do is have a current readout of the amount that is in a checking account. I am trying to do this using select queries. There are 4 catagories. Expenses, Income, Transfer In, Transfer Out I made 4 queries to find those catagories totals and they are: QryPriChkgExpTot QryPriChkgIncTot QryPriChkgTranInTot QryPriChkgTranOutTot I found that in my dummy data that I neglected to put a transfer in and so when I ran that query it continues to come empty. Consequently anything i run using that data doesnt treat it as 0 so further down the line I get an empty as well. I tried to handle this with an iif statement and it doesnt work. Any suggestions particularlly pay attention to QryPriChkgTranInTot and see how it doesnt have a value when run. I considered this to be a null. Am I mistaken? |
|
#2
| |||
| |||
| Just use the Nz() function. |
|
#3
| |||
| |||
| with such a strong approval of the Nz funct ill have to most certainly do that. I hope the help on it is somewhat complete. Thanks guys |
|
#4
| |||
| |||
| Just post back here if you need more assistance. Pleanty of people willing to help. |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Conversion failed when converting the varchar error | guddu | Microsoft SQL Server | 9 | July 17th, 2008 11:08 AM |
| finding values | todd2006 | ASP Development | 2 | June 23rd, 2008 02:03 AM |
| retrieve values | todd2006 | SQL Development | 5 | June 19th, 2008 01:46 PM |
| Data is Null. This method or property cannot be called on Null values. | Shem | .Net Development | 8 | June 17th, 2008 09:39 AM |
| Return Default Date If Null | jmurrayhead | SQL Development | 16 | June 8th, 2008 10:30 PM |