Hi! All,
I am working on Access 2002. I have a tabbed form where i put a subform/subreport control and linked the subform/subreport control to a form (namely "Installed Measures"). The form i have has subforms. I need to access the controls on the subforms. I followed the book on Access 2000 and this was the syntax i used
Forms![Installed Measures]![InstalledMeasures_lampsandballasts].Form![Text16] = Null
...
...
...
(Added more lines to access other controls on the same subform)
I wrote this code on the "On Enter" event of the Tab's subform/subreport control. The "On Enter" event gets triggered when the tab is selected. So on selecting the tab, i get the error saying "Can't find the form Installed Measures". A friend of mine uses the same code in access 2000 and it works fine such that he is able to access subform controls while i can't in access 2002. Is there something different i need to do? Please let me know.
Also i would like to know the difference in syntax for accessing subform controls and subform properties. Hope to get some help. Thanx.
Rishi..
I am working on Access 2002. I have a tabbed form where i put a subform/subreport control and linked the subform/subreport control to a form (namely "Installed Measures"). The form i have has subforms. I need to access the controls on the subforms. I followed the book on Access 2000 and this was the syntax i used
Forms![Installed Measures]![InstalledMeasures_lampsandballasts].Form![Text16] = Null
...
...
...
(Added more lines to access other controls on the same subform)
I wrote this code on the "On Enter" event of the Tab's subform/subreport control. The "On Enter" event gets triggered when the tab is selected. So on selecting the tab, i get the error saying "Can't find the form Installed Measures". A friend of mine uses the same code in access 2000 and it works fine such that he is able to access subform controls while i can't in access 2002. Is there something different i need to do? Please let me know.
Also i would like to know the difference in syntax for accessing subform controls and subform properties. Hope to get some help. Thanx.
Rishi..