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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crosstab values remain null

Status
Not open for further replies.

Zeroanarchy

Technical User
Jun 11, 2001
630
AU
Hi, was wondering if someone can see what I am doing wrong.

For some reason the values in the fields remain blank even when they are told to change to No

Code:
TRANSFORM First(IIf(IsNull([LPRODUCTNAME])=True,"NO","YES"))


[afro]ZeroAnarchy
Experience is a wonderful thing. It enables you to recognize a mistake
when you make it again.

 
Try:
TRANSFORM Nz(First(IIf(IsNull([LPRODUCTNAME]),"NO","YES")),"NO")


Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Or this ?
TRANSFORM First(IIf(Trim([LPRODUCTNAME] & "")="","NO","YES"))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks both of you,

PHV the method you mentioned did not work, but the method dhookom mentioned did work. I don't understand why?

Thanks again.

Cheers

[afro]ZeroAnarchy
Experience is a wonderful thing. It enables you to recognize a mistake
when you make it again.

 
Mine suggestion was a WAG. The Nz() around the outside generally works to place a value where none exists.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top