?
=?windows-1250?Q?Vladim=EDr_Cvajniga?=
I have a form with two subforms. One of the subforms has another subform. I
need to set subform's subform's RecordSource (see subSubform11).
Form: frmPZ_Kniha
Subform1: frmPZ_DPH
subSubform11: frmPZ_DPHsum
Subform2: frmPZ_Denik
I have tried following but I didn't succeed:
Forms![frmPZ_Kniha]![frmPZ_DPH].Form![frmPZ_DPHsum].Form.RecordSource =
strRecordSource2
[frmPZ_DPH].Form![frmPZ_DPHsum].Form.RecordSource = strRecordSource2
In both cases I get the following error:
2455 Invalid reference to the property Form/Report
I need to set frmPZ_DPH's RecordSource as well
([frmPZ_DPH].Form.RecordSource = strRecordSource1). I'm trying to set record
sources in either Form_Open or Form_Load but I always get an error.
What am I doing wrong?
TIA
Vlado
need to set subform's subform's RecordSource (see subSubform11).
Form: frmPZ_Kniha
Subform1: frmPZ_DPH
subSubform11: frmPZ_DPHsum
Subform2: frmPZ_Denik
I have tried following but I didn't succeed:
Forms![frmPZ_Kniha]![frmPZ_DPH].Form![frmPZ_DPHsum].Form.RecordSource =
strRecordSource2
[frmPZ_DPH].Form![frmPZ_DPHsum].Form.RecordSource = strRecordSource2
In both cases I get the following error:
2455 Invalid reference to the property Form/Report
I need to set frmPZ_DPH's RecordSource as well
([frmPZ_DPH].Form.RecordSource = strRecordSource1). I'm trying to set record
sources in either Form_Open or Form_Load but I always get an error.
What am I doing wrong?
TIA
Vlado