473,325 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

if statement for blank cells

1
I am trying to write a iif statement that returns "0" if the cell is blank, otherwise a "1". For some reason this filter returns only 1's regardless of whether the cell is field is blank or not.

1Acct Processing: IIf([Unsecuritizable Assets Table]![account processing status]="",0,1)

I know this is a basic problem, but I have been playing with it for a while and am a novice user of access. Thanks in advance.
Jul 18 '08 #1
1 18404
hjozinovic
167 100+
I am trying to write a iif statement that returns "0" if the cell is blank, otherwise a "1". For some reason this filter returns only 1's regardless of whether the cell is field is blank or not.

1Acct Processing: IIf([Unsecuritizable Assets Table]![account processing status]="",0,1)

I know this is a basic problem, but I have been playing with it for a while and am a novice user of access. Thanks in advance.
Try this:

IIf(IsNull([Unsecuritizable Assets Table]![account processing status])=True,0,1)

or

IIf(Len([Unsecuritizable Assets Table]![account processing status])=0,0,1)


best,
h.
Jul 18 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: ale.of.ginger | last post by:
Greetings! I am trying to make a multiplayer (no AI, 2 person) game of tic tac toe in Python. So far it has been pretty simple. My only concern is with the win checking to see if a person has...
1
by: Roy | last post by:
Hey All, Kind of a series of anomalies here with one root source, I believe. I have an editable, paging datagrid. 1.When one clicks "edit" textboxes open up on row x, HOWEVER, if one clicks...
6
by: tshad | last post by:
If you have nothing in a cell, the cell doesn't have the inset appearance that all the other cells do. Normally, you could just put a "&ndsp;" in the cell if the it is blank. But how do you do...
3
by: Antonio | last post by:
Can somebody tell my why the following procedure changes the data in the fields being updated to all the records in the database? private void updateRow(object source,...
6
by: RigasMinho | last post by:
I have a table that is made in XSL that grabs the information from an XML sheet. However any cell that is blank in XML the border doesnt show up when you view it. Is there a work around for...
0
by: yongsheng | last post by:
Hi, i've searched through the discussions but haven't got a clue to solve my problem. Im new to VBA, maybe its a simple task but any help is welcomed. The Problem: Every month, I need to sort...
2
by: commodityintelligence | last post by:
Hello, I am trying to create an IF Statement that checks if a field has a null value. Table mats by sku is a table with skus and 2 columns of data called Index and Category Index Index is...
3
by: dhutton | last post by:
SQL Server 2000 How do you write your query to check for blank (empty) cells? Need to check 3 columns. ColumnA, ColumnB and ColumnC. I need to grab the data in ColumnA ONLY if ColumnB and...
0
by: GiftX | last post by:
Hellow everyone, I am calling/manipulating Excel spreadsheet through VB 6.0. Most of my objectives are accomplished except some cosmetics. Problem#1: For example, after running my program to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.