Hi all
I have a Sales Order form named SlsOrders and its SubForm now named SlsOrdRows.
I renamed the subform because I originally gave it a long complicated name with a space in it. Since renaming it I have checked out the the Subform container record in the main form and altered these properties...
Source Object To a value of SlsOrdRows
Name To a value of SlsOrdRows
In the Main form (SlsOrders) I have a control called AmountTotal.
In the SubForm I have a column called Amount which I want to sum the Amounts in all of the SlsOrdRows.
To do this I have set up a Contol in the footer of the SubForm SlsOrdRows called TotalAmount with a Control Source of =Sum(Amount).
The AmountTotal in the SlsOrders form is bound by Control Source to the field Amount in my Sales Order Header Table total so I cannot reference it to the TotalAmount Control in the footer of the SubForm.
So I tried .....
Forms!SlsOrders.TotalAmount.Value = Forms!SlsOrders!SlsOrdRows.AmountTotal.Value
The error message that I get is "Run Time Error: Object doesn't support this property or method.
I know that the problem does not relate to the Forms!SlsOrders.TotalAmount.Value bit because I tried
Forms!SlsOrders.TotalAmount.Value = 2 and that worked fine. So the issue seems to be in the renamed SubForm.
So I am stuck on this frustrating problem. Is there some other identifier that I must change after the rename, or perhaps another issue?