nulls in crosstab

GinaO

New member
Local time
Today, 06:49
Joined
Jun 27, 2002
Messages
6
Somebody please help me !!!


I finally managed to get my data together correctly in my final query which is a crosstab.

Now i want to perform a subtraction on the columns of the crosstab and because of the blanks/nulls my results are incorrect.

eg. if i have 2 column headings in my crosstab , i want to generate a third column which is column 1 minus column 2.


i tried to use nz, isempty,ismissing to convert the blanks to zero so that i can subtract but nothing works .


If sum1 knows how to deal with this please please please help me ..

Thanks,
Gina.
 
I've been at this for days and still can't get through.

If my post wasn't clear i'm be glad to elaborate.

But somebody PLEASE help !!!
 
Nz([Column 1]) - Nz([Column 2])
 
Thanks but that doesn't work ..

gives #error on the report
and i can't do the subtraction in the crosstab query either.

is there any other way out ?
 
Make another query out of your crosstab and do the nz function there and see if that helps :)
 
Thanks Sohaila,

But i can't base a new query on a crosstab :(

NOL
 
If what JonK suggested did not work, maybe it is because you don' t only have nulls but aslo zero-length strings.
Give a try to:
Iif(len(nz([Column1],""))=0,0,[Column1]) - Iif(len(nz([Column2],""))=0,0,[Column2])
 

Users who are viewing this thread

Back
Top Bottom