G
Guest
error 2455 Invalid reference to the property Form/report.
I have a form with a subform that has another subform. The code that caused
the error is
Dim frm as Form
Set frm = Forms.CashBook.TransactionAddMaster.Form .TransactionAdd.Form
I tried
Set frm = Forms.CashBook.TransactionAddMaster.Form
frm.TransactionAdd.Form.Period.DefaultValue = CurrentPeriod
The first line was ok but the second gave the same error.
I have an old db with the same setup and the code is working fine.
The object Browser sees the relationship ok. VB sees it to (in a dim as
forms_TransactionAdd). I've checked the form desgn mode and it sees it as a
subform control and a form.
I'm stuck Please help.
I have a form with a subform that has another subform. The code that caused
the error is
Dim frm as Form
Set frm = Forms.CashBook.TransactionAddMaster.Form .TransactionAdd.Form
I tried
Set frm = Forms.CashBook.TransactionAddMaster.Form
frm.TransactionAdd.Form.Period.DefaultValue = CurrentPeriod
The first line was ok but the second gave the same error.
I have an old db with the same setup and the code is working fine.
The object Browser sees the relationship ok. VB sees it to (in a dim as
forms_TransactionAdd). I've checked the form desgn mode and it sees it as a
subform control and a form.
I'm stuck Please help.