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!

Hode crosstab fields

Status
Not open for further replies.

SDS100UK

MIS
Jul 15, 2001
185
GB
Hi,
I have a crosstab query, when I open the report I want empty fields to be hidden.


I have tried this code in on page event
if isnull[field] then
field.visible = false
end if

I have also tried the is empty approach

but neither of them work, I have checked my data types(which are text)

Anyideas why or how I can hide empty fields.

Hope ou can help
Steven
 
.Visible = False

MichaelRed
mred@att.net

There is never time to do it right but there is always time to do it over
 
you may wish to try the code on a different event such as onOpen or onActivate.
 
Michael & Mirirom,

Possibly I mislead you.
I put field.visible=False to indicate the field name.

I have also tried putting the code elsewhere, but if the field is empty, null or zero it just will not seem to work on a report that is based on a crosstab.

Could it be something to do with the field names?

Hope you can help!!

Steven
 
I think it is more likely to be where you are placing the code. It probably needs to be in the "on print" event. MichaelRed
mred@att.net

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top