mfaisalwarraich
New member
- Local time
- Today, 09:39
- Joined
- Oct 13, 2007
- Messages
- 2
Hi,
well im not an expert of Access. i made a report in design view and then i added sub reports to it. i want a text box should appear if there is no record found in any subreports with "No Records Found".
i did this with each subreport alone. but when they are added into a report as subreport they are not even not visible if no record is there in subreport.
for each report (which are added as subreports in a report) i added the following code in On No Data event of the report:
where txtNoData is a text box whose visible property is set to no.
Me!txtNoData.Visible = True
Me![txtNoData] = "No Records Found"
Cancel = False
this code is working for me but only if i am opening report alone. i am looking for your help. please help me out how would i get rid of this problem? thank u.
Regards
mfaisalwarraich
well im not an expert of Access. i made a report in design view and then i added sub reports to it. i want a text box should appear if there is no record found in any subreports with "No Records Found".
i did this with each subreport alone. but when they are added into a report as subreport they are not even not visible if no record is there in subreport.
for each report (which are added as subreports in a report) i added the following code in On No Data event of the report:
where txtNoData is a text box whose visible property is set to no.
Me!txtNoData.Visible = True
Me![txtNoData] = "No Records Found"
Cancel = False
this code is working for me but only if i am opening report alone. i am looking for your help. please help me out how would i get rid of this problem? thank u.
Regards
mfaisalwarraich