nulls in crosstab (1 Viewer)

GinaO

New member
Local time
Today, 12:29
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.
 

GinaO

New member
Local time
Today, 12:29
Joined
Jun 27, 2002
Messages
6
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 !!!
 

Jon K

Registered User.
Local time
Today, 12:29
Joined
May 22, 2002
Messages
2,209
Nz([Column 1]) - Nz([Column 2])
 

NOL

Registered User.
Local time
Today, 07:29
Joined
Jul 8, 2002
Messages
102
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 ?
 

Sohaila Taravati

Registered User.
Local time
Today, 12:29
Joined
Oct 24, 2001
Messages
266
Make another query out of your crosstab and do the nz function there and see if that helps :)
 

NOL

Registered User.
Local time
Today, 07:29
Joined
Jul 8, 2002
Messages
102
Thanks Sohaila,

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

NOL
 

Alexandre

Registered User.
Local time
Today, 18:29
Joined
Feb 22, 2001
Messages
794
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

Top Bottom