Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Referencing a control on a subform

$
0
0
Good Morning

I have the following code which browses to a form from a button on the form reportcentre

DoCmd.BrowseTo ObjectType:=acBrowseToForm, _
ObjectName:="IncReport", _
PathToSubformControl:="Main.NavigationSubform>Repo rtCenter.sfrReportPage", _
WhereCondition:="*", _
DataMode:=acFormAdd

I require to change the visibility of some of the feilds on the form "increport"

As I understand I am required to identfiy all levels for example

Forms!formname!subformname.Form.controlname

I have tried several variations but cannot get it to work for example

Forms!main!reportcenter.form.strReportPage!incRepo rt.form.test.visible = False

Any suggestions would be appriciated

Thank you

For some reason on this posting there is a space on the increport this is not the case in the script

Viewing all articles
Browse latest Browse all 13329

Trending Articles