I can't seem to be able to "address" a certain control when I am writting code in my main form.
Let me explain:
frmMain subfrmSecond subfrmThird
LastName EntryDate Item
FirstName Place Amount
... ... ...
... ... ...
Due to the relationships between the tables, subfrmSecond is a subform of frmMain, and subfrmThird is a subform of subfrmSecond.
I want subfrmSecond to become visible when LastName <>""
No problem. I wrote code in Private Sub Form_Current()
and it works fine.
Now, when the user enters information in the subfrmSecond.EntryDate I want subfrmThird to become visible. The problem is that when I write code in the Private Sub Form_Current() section of the main form, I can't seem to "find" the subfrmSecond.EntryDate control (i.e. it does not appear in the drop down menu when I press the "dot". Nor can I find it if I try writting code in the subfrmSecond.
Am I making sense? What am I doing wrong?.
I have tried:
Me. .....
Me!. .....
Form. .....
Forms!. ....
Form("subformthird". ....
Form.[subfrmSecond]. .....
Form.[Form_subfrmSecond Subform]. ....
etc....
Someone please help
Where should I be writting the code in the main form, on the subfrmSecond, the subfrmThird??
Confused,
Luis
Let me explain:
frmMain subfrmSecond subfrmThird
LastName EntryDate Item
FirstName Place Amount
... ... ...
... ... ...
Due to the relationships between the tables, subfrmSecond is a subform of frmMain, and subfrmThird is a subform of subfrmSecond.
I want subfrmSecond to become visible when LastName <>""
No problem. I wrote code in Private Sub Form_Current()
and it works fine.
Now, when the user enters information in the subfrmSecond.EntryDate I want subfrmThird to become visible. The problem is that when I write code in the Private Sub Form_Current() section of the main form, I can't seem to "find" the subfrmSecond.EntryDate control (i.e. it does not appear in the drop down menu when I press the "dot". Nor can I find it if I try writting code in the subfrmSecond.
Am I making sense? What am I doing wrong?.
I have tried:
Me. .....
Me!. .....
Form. .....
Forms!. ....
Form("subformthird". ....
Form.[subfrmSecond]. .....
Form.[Form_subfrmSecond Subform]. ....
etc....
Someone please help
Where should I be writting the code in the main form, on the subfrmSecond, the subfrmThird??
Confused,
Luis