A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Subreport is empty...need to show "No Records Found"



 
 
Thread Tools Display Modes
  #1  
Old August 2nd, 2007, 11:20 PM posted to microsoft.public.access.reports
Kathy
external usenet poster
 
Posts: 641
Default Subreport is empty...need to show "No Records Found"

I have a report with a subreport. I understand that when there are no records
in the subreport then it will display empty. I read in another thread that
you can put a control behind the subreport that will be visible when the
subreport is empty. I am trying to do this with a control that ="No Records
Found", but the control still shows up when the subreport has data. I tried
the On Format suggestion, but did not work out. I am a novice, so it was
probably my mistake...any further help is much appreciated.
--
Kbelo
  #2  
Old August 3rd, 2007, 12:00 AM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Subreport is empty...need to show "No Records Found"

Set the control source to something like:

=IIf(sbrptctrlName.Report.HasData,Null, "NO DATA")
--
Duane Hookom
Microsoft Access MVP


"Kathy" wrote:

I have a report with a subreport. I understand that when there are no records
in the subreport then it will display empty. I read in another thread that
you can put a control behind the subreport that will be visible when the
subreport is empty. I am trying to do this with a control that ="No Records
Found", but the control still shows up when the subreport has data. I tried
the On Format suggestion, but did not work out. I am a novice, so it was
probably my mistake...any further help is much appreciated.
--
Kbelo

  #3  
Old August 3rd, 2007, 03:58 PM posted to microsoft.public.access.reports
Kathy
external usenet poster
 
Posts: 641
Default Subreport is empty...need to show "No Records Found"

Thank you for your reply. I am still having problems...sorry, I am probably
doing something "obvious", but just not to me. Anyway, this is what I am
entering in an unbound textbox on the main form (not subform):
=IIf(strStatus.Report.HasData, Null, "No Data")

strStatus is on the subForm. But I am getting "#Name?" as the response.
Again many thanks for your help.
--
Kbelo


"Duane Hookom" wrote:

Set the control source to something like:

=IIf(sbrptctrlName.Report.HasData,Null, "NO DATA")
--
Duane Hookom
Microsoft Access MVP


"Kathy" wrote:

I have a report with a subreport. I understand that when there are no records
in the subreport then it will display empty. I read in another thread that
you can put a control behind the subreport that will be visible when the
subreport is empty. I am trying to do this with a control that ="No Records
Found", but the control still shows up when the subreport has data. I tried
the On Format suggestion, but did not work out. I am a novice, so it was
probably my mistake...any further help is much appreciated.
--
Kbelo

  #4  
Old August 4th, 2007, 09:16 PM posted to microsoft.public.access.reports
Kathy
external usenet poster
 
Posts: 641
Default Subreport is empty...need to show "No Records Found"

Oops, just dawned on me...as had it in the wrong section. It is now
working...many thanks!
--
Kbelo


"Kathy" wrote:

Thank you for your reply. I am still having problems...sorry, I am probably
doing something "obvious", but just not to me. Anyway, this is what I am
entering in an unbound textbox on the main form (not subform):
=IIf(strStatus.Report.HasData, Null, "No Data")

strStatus is on the subForm. But I am getting "#Name?" as the response.
Again many thanks for your help.
--
Kbelo


"Duane Hookom" wrote:

Set the control source to something like:

=IIf(sbrptctrlName.Report.HasData,Null, "NO DATA")
--
Duane Hookom
Microsoft Access MVP


"Kathy" wrote:

I have a report with a subreport. I understand that when there are no records
in the subreport then it will display empty. I read in another thread that
you can put a control behind the subreport that will be visible when the
subreport is empty. I am trying to do this with a control that ="No Records
Found", but the control still shows up when the subreport has data. I tried
the On Format suggestion, but did not work out. I am a novice, so it was
probably my mistake...any further help is much appreciated.
--
Kbelo

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.