Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Null

Status
Not open for further replies.

Tronsliver

Technical User
Sep 19, 2000
120
US
Can someone tell me why this isn't working? Expr1: Switch([ROPAResult]="Null","1",True,[ROPAResult])

I have 200 records and only 115 are showing up in the querie. This is because of "null" entries in the "ROPAResult" field. I tried the above statement with no success. Can someone shed some light on this? Actually there are three possibilities for entries in the field. They are: "J" "1" and "Null".

I don't have permision to change any of the tables' properties.


Thanks

Roger

 
To find null results the correct syntax is
Expr1: Switch([ROPAResult]=is null,.....)
Where you see NULL there is not a string but a value what means there is nothing. John Fill
1c.bmp


ivfmd@mail.md
 
...John! Remove the "=".
Expr1: Switch([ROPAResult] is null,.....)

 
Balor,

This still didn't work. ROPA:Switch([ROPAResult]Is Null,"1",True,[ROPAResult])

I'm still only getting 115 records out of the 200 because of the null entry?

Thanks

 
My mistake, I did just copy/paste and have forgotten about '='. John Fill
1c.bmp


ivfmd@mail.md
 
Tronsliver,

Are you sure that this is the problem? Maby there is something else. Maby tou have an inner join to a table where there is no related record for five of the rows? If there is you have to change it to an outer join.
 
I see there in the question only incorrect syntax for searching nulls. I'm a programmer and not a thoughts reader. John Fill
1c.bmp


ivfmd@mail.md
 
Balor,

Yep you were right it was a "Join" problem. Thank You!

JohnFil --thanks to you also.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top