If you are writing code in a subform or subreport, use the Parent operator to refer to a control on the Main (Parent) form or report.
For example:
Use | Parent!cboStateLocation |
Instead of | Forms!FrmLocation!cboStateLocation |
If the form or report is renamed, the Parent operator protects you from any errors occurring.
Thank you! Thank you! I just finished reading this document, which was part of a link in the recent Buzz newsletter. I have printed it for others to read, especially those skeptical on the powers of Access and its capabilities.
Darren D.
All Our Microsoft Access Products