By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,361 Members | 3,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,361 IT Pros & Developers. It's quick & easy.

field subreport visible = False

P: n/a
pdm
hoi access,

I have a subreport and with the id of inheritance of OOP I like to
reuse this subreport in other main reports and hide some fields.
First, is this possible and second what is the correct syntax. I tried
many combinations but error on syntax.

first I create a MainReportFeedMainReports with only one subReport
where 5 fields are not visible.
I need the correct syntax to say on the event Open
MainReportFeedMainReports that some fields of the included subReport
should not be visible

something like : me!subreport!field.visible = False (this is not
working)

application =
Main Report 1
include subreport MainReportFeedMainReports

Main Report 2
include subreport MainReportFeedMainReports

Apr 20 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Apr 20, 7:12 am, p...@patweb.be wrote:
hoi access,

I have a subreport and with the id of inheritance of OOP I like to
reuse this subreport in other main reports and hide some fields.
First, is this possible and second what is the correct syntax. I tried
many combinations but error on syntax.

first I create a MainReportFeedMainReports with only one subReport
where 5 fields are not visible.
I need the correct syntax to say on the event Open
MainReportFeedMainReports that some fields of the included subReport
should not be visible

something like : me!subreport!field.visible = False (this is not
working)

application =
Main Report 1
include subreport MainReportFeedMainReports

Main Report 2
include subreport MainReportFeedMainReports
You are almost right with your syntax. You need to indentify the
subreport as a report. The syntax for refreis:

me.subreport.report.field.visible = false

I don't remember offhand if you need to use me.subreport.report!
field.visible instead or not.
-- Larry Engles
Access developer since day 1 of Access 1.0

Apr 20 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.