PC Review


Reply
Thread Tools Rate Thread

Crosstab/Report Problem

 
 
NeoFax99@gmail.com
Guest
Posts: n/a
 
      18th Dec 2006
I am having a problem with a crosstab query that results in no data,
which is fine, but the report generates an error. I read here that you
can add ColumnHeadings to the query properties, which also work.
However, in my report I tried using for row source
=Iif(iserror([60-90],null,[60-90]). Now, if there is an error
generated, it provides null as the value. However, if the field is not
an error it still nulls out the value. I would like to not see a page
of #Errors, but I would also like to have my information be correct.
What is wrong with this?

 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      18th Dec 2006
If you only see this #Error on the report when the crosstab returns no
records at all, you could avoid it by testing the NoData property of the
report:
=IIf([Report].[HasData], [60-90], Null)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am having a problem with a crosstab query that results in no data,
> which is fine, but the report generates an error. I read here that you
> can add ColumnHeadings to the query properties, which also work.
> However, in my report I tried using for row source
> =Iif(iserror([60-90],null,[60-90]). Now, if there is an error
> generated, it provides null as the value. However, if the field is not
> an error it still nulls out the value. I would like to not see a page
> of #Errors, but I would also like to have my information be correct.
> What is wrong with this?



 
Reply With Quote
 
NeoFax99@gmail.com
Guest
Posts: n/a
 
      18th Dec 2006
OK, with that now I get an #Error.

I typed that into the textbox ControlSource verbatim.


Allen Browne wrote:
> If you only see this #Error on the report when the crosstab returns no
> records at all, you could avoid it by testing the NoData property of the
> report:
> =IIf([Report].[HasData], [60-90], Null)
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >I am having a problem with a crosstab query that results in no data,
> > which is fine, but the report generates an error. I read here that you
> > can add ColumnHeadings to the query properties, which also work.
> > However, in my report I tried using for row source
> > =Iif(iserror([60-90],null,[60-90]). Now, if there is an error
> > generated, it provides null as the value. However, if the field is not
> > an error it still nulls out the value. I would like to not see a page
> > of #Errors, but I would also like to have my information be correct.
> > What is wrong with this?


 
Reply With Quote
 
NeoFax99@gmail.com
Guest
Posts: n/a
 
      18th Dec 2006
I fixed it. I had to change the name of the TextBox to txt60_90 for it
to work. Thanks!


(E-Mail Removed) wrote:
> OK, with that now I get an #Error.
>
> I typed that into the textbox ControlSource verbatim.
>
>
> Allen Browne wrote:
> > If you only see this #Error on the report when the crosstab returns no
> > records at all, you could avoid it by testing the NoData property of the
> > report:
> > =IIf([Report].[HasData], [60-90], Null)
> >
> > --
> > Allen Browne - Microsoft MVP. Perth, Western Australia
> > Tips for Access users - http://allenbrowne.com/tips.html
> > Reply to group, rather than allenbrowne at mvps dot org.
> >
> > <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > >I am having a problem with a crosstab query that results in no data,
> > > which is fine, but the report generates an error. I read here that you
> > > can add ColumnHeadings to the query properties, which also work.
> > > However, in my report I tried using for row source
> > > =Iif(iserror([60-90],null,[60-90]). Now, if there is an error
> > > generated, it provides null as the value. However, if the field is not
> > > an error it still nulls out the value. I would like to not see a page
> > > of #Errors, but I would also like to have my information be correct.
> > > What is wrong with this?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
report using crosstab query problem Asherman Microsoft Access Queries 3 13th Jun 2008 12:44 PM
Report from crosstab query problem =?Utf-8?B?Sm9l?= Microsoft Access Reports 2 3rd Apr 2007 08:04 AM
Problem with Crosstab Query and Report =?Utf-8?B?Um9iIFNoYXR0dWNr?= Microsoft Access Reports 1 14th Feb 2005 10:31 PM
Problem with crosstab report =?Utf-8?B?SmVkc3Rlcg==?= Microsoft Access Reports 4 23rd Dec 2004 04:43 AM
Crosstab report problem Ynot Microsoft Access Reports 6 17th Dec 2004 03:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:08 PM.