var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Syntax question
I'm trying to reference a subform in a tab control which is contained in a master form.
When I try to reference the subform in my VB it comes back that the form doesn't exist. Do I reference the subform directly in the code or do I have to nest the references?
The code is
dim frm as Forms
Set frm = Forms![frmSub_Client]
If frm![Sal] = "Other" Then frm![Sal_Othr].Visible = True
frm![Sal_Othr].Visible = False
Thanks for your help.
Don't wory about creating a Form object. To reference a control on a subform use the following syntax:
In your case something like:
Me.frmSub_Client.Form.Sal_Othr.Visible = True
The key to remember is to use the Form property of the subform to refer to anything on the subform.
Thank you for the help.
I'll admit...I usually don't use Me since most of the time I get confused as to what I'm referencing!
Well..it's back to VB-land.