I
Imran J Khan
I have prexisting precedure with code to requery subforms:
frmSLSDetailSelect.Form.Requery
It used to work fine.
But now, after adding more code to change the color of some controls in
subforms that caused problems between the name of the subform control and the
subform name (control name "frmSlsDetail" and form name
"frmSlsDetailSelect"), changed the subform control name so it is the same as
the form name. The color change code works great, but now the code to requery
subforms fails with error
You entered an expression that has an invalid reference to the property
form/report.
I don't know what to do. Changing the subform and subform control name so
they are different does not help. I have already read the link
http://www.mvps.org/access/forms/frm0031.htm
But perhaps don't know how it can help me.
Imran
frmSLSDetailSelect.Form.Requery
It used to work fine.
But now, after adding more code to change the color of some controls in
subforms that caused problems between the name of the subform control and the
subform name (control name "frmSlsDetail" and form name
"frmSlsDetailSelect"), changed the subform control name so it is the same as
the form name. The color change code works great, but now the code to requery
subforms fails with error
You entered an expression that has an invalid reference to the property
form/report.
I don't know what to do. Changing the subform and subform control name so
they are different does not help. I have already read the link
http://www.mvps.org/access/forms/frm0031.htm
But perhaps don't know how it can help me.
Imran