var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Variable from a subform
I am trying to store data from a subform into a variable. The following codes shows what I have so far.
The first to variables work fine that are looking at the main form the next variable creates an error. "Object dosent support this property or method". MyCostID that is looking at the subform.
Private Sub Form_Open(Cancel As Integer)
Dim MyInvoice As String
Dim MyAccRef As Variant
Dim MyLineNo As Variant
Dim MyCostID As Variant
MyAccRef = Forms.frmCostAllocation.txtAccounts_Reference
MyLineNo = Forms.frmCostAllocation.txtAccounts_Line_No
MyCostID = Forms.frmCostAllocationsub.txtCostID
All help appreciated.
The syntax to refer to a subform is different:
That is excellent - Cheers for that!
! or is it .