WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

If subreport has no data return "None"

 
   Home -> Office other -> Reports RSS
Next:  Reports: Dropdown to Checkbox  
Author Message
Ben

External


Since: Jul 12, 2004
Posts: 204



(Msg. 1) Posted: Thu Jul 24, 2008 9:43 am
Post subject: If subreport has no data return "None" Add to elertz
Archived from groups: microsoft>public>access>reports (more info?)

Is it possible to somehow code a subreport to return the value "None" in a
Label if the tables in a subreport are blank?

I have a subreport called Security. If no data is entered I would like the
report to just show "None" or "N/A" or something like that.

Make sense?
Back to top
Login to vote
Allen Browne

External


Since: Nov 08, 2003
Posts: 9154



(Msg. 2) Posted: Fri Jul 25, 2008 1:22 am
Post subject: Re: If subreport has no data return "None" Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Test the HasData property of the report in the subreport control.

Place a text box on the main report in the same section as the subreport.
Set its Control Source to an expression such as this:
=IIf([Security].[Report].[HasData], Null, "None")

--
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.

"Ben" <Ben RemoveThis @discussions.microsoft.com> wrote in message
news:BE970137-2057-4380-BDA7-A986C5B4D687@microsoft.com...
> Is it possible to somehow code a subreport to return the value "None" in a
> Label if the tables in a subreport are blank?
>
> I have a subreport called Security. If no data is entered I would like
> the
> report to just show "None" or "N/A" or something like that.
>
> Make sense?
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Reports All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET