Hello,
I have an unbound form ”frmMain” with a subform “frmSamples”. The frmSamples has a bound sub-subform “frmCNVs”.
On opening of the Main unbound form I would like to filter both the frmSamples” and also the “frmCNVs. I know how to filter the “frmSamples” but not sure how to refer to frmCNVs to further filter the data. Is this possible?
Here is the code that I use to filter the subform "frmSamples" on Opening of frmMain:
Thank you for your help,
Mila
I have an unbound form ”frmMain” with a subform “frmSamples”. The frmSamples has a bound sub-subform “frmCNVs”.
On opening of the Main unbound form I would like to filter both the frmSamples” and also the “frmCNVs. I know how to filter the “frmSamples” but not sure how to refer to frmCNVs to further filter the data. Is this possible?
Here is the code that I use to filter the subform "frmSamples" on Opening of frmMain:
Code:
[COLOR=#7d2727][FONT="Times New Roman"]strFrmName = "frmMain"[/FONT][/COLOR]
[COLOR=#7d2727][FONT="Times New Roman"]DoCmd.OpenForm strFrmName[/FONT][/COLOR]
[COLOR=#7d2727][FONT="Times New Roman"] Forms!frmMain.frmSamples.Form.Filter = Criteria[/FONT][/COLOR]
[COLOR=#7d2727][FONT="Times New Roman"] Forms!frmMain.frmSamples.Form.FilterOn = True [/FONT][/COLOR]
Mila