M
Mary
I have an unbound report containing two subreports of annual information. If
we fix one then I can apply the same method to the other.
I need the subreport to show data, with the following as an example:
BIRTHDAYS
Thursday April 1, 2008:
Mr. Bentley
Mrs. Smith
Mr. Zanders
Friday April 2, 2008:
Ms. Pennyloafer
Happy Birthday!
The report looks very good, the only problem is that I cannot seem to get it
to return what I need when there is no birthday for the day or weekend. When
there are no birthdays the subreport doesn't show at all but I need it to
show this:
Friday April 2, 2008:
None
The following is the setup of the subreport:
Report Header
BIRTHDAYS
Page Header
Month Header
Day Header
=IIf([Month]="01","January","") & IIf([Month]="02","February","") &
IIf
([Month] ="03","March","") & IIf([Month]="04","April","") & IIf([Month]
="05","May","") & IIf([Month]="06","June","") &
IIf([Month]="07","July","") & IIf
([Month]="08","August","") & IIf([Month]="09","September","") &
IIf([Month]
="10","October","") & IIf([Month]="11","November","") & IIf([Month]
="12","December","") & " " & [Day]
Detail
=IIf([Index Name] Is Null,"None",[Index Name])
Page Footer
Report Footer
=IIf([Index Name] Is Null,"","Happy Birthday!")
At this point all is running quite well except when the query runs and there
are no birthdays the subreport doesn't appear at all. Oh, the name of the
day of the week (friday, etc) does not show but that is minor. I would just
like to tackle the if/then statement so the subreport returns the date and
"none" rather than disappearing.
Any suggestions?
we fix one then I can apply the same method to the other.
I need the subreport to show data, with the following as an example:
BIRTHDAYS
Thursday April 1, 2008:
Mr. Bentley
Mrs. Smith
Mr. Zanders
Friday April 2, 2008:
Ms. Pennyloafer
Happy Birthday!
The report looks very good, the only problem is that I cannot seem to get it
to return what I need when there is no birthday for the day or weekend. When
there are no birthdays the subreport doesn't show at all but I need it to
show this:
Friday April 2, 2008:
None
The following is the setup of the subreport:
Report Header
BIRTHDAYS
Page Header
Month Header
Day Header
=IIf([Month]="01","January","") & IIf([Month]="02","February","") &
IIf
([Month] ="03","March","") & IIf([Month]="04","April","") & IIf([Month]
="05","May","") & IIf([Month]="06","June","") &
IIf([Month]="07","July","") & IIf
([Month]="08","August","") & IIf([Month]="09","September","") &
IIf([Month]
="10","October","") & IIf([Month]="11","November","") & IIf([Month]
="12","December","") & " " & [Day]
Detail
=IIf([Index Name] Is Null,"None",[Index Name])
Page Footer
Report Footer
=IIf([Index Name] Is Null,"","Happy Birthday!")
At this point all is running quite well except when the query runs and there
are no birthdays the subreport doesn't appear at all. Oh, the name of the
day of the week (friday, etc) does not show but that is minor. I would just
like to tackle the if/then statement so the subreport returns the date and
"none" rather than disappearing.
Any suggestions?