Refer to another form's controls

wazza

Registered User.
Local time
Yesterday, 23:31
Joined
Apr 23, 2004
Messages
104
REFER TO ANOTHER FORMs CONTROLS FROM EVENT.....???

Hi

I have developed a form (MainForm), with a subform (ListForm) which contains a listbox displaying records

on the main form - is a button which launches another form (WzdForm). The WzdForm will hopefully provide the capability to re-query a list on the ListForm (subfrm) according to the user criteria.

On the event of the finish button being clicked on the WzdForm i have tried to develop some code that will requery the table on the MainForm.

I am having problems tring to refer to the controls on the subform - to set the focus and re-query..

i have tried using; forms!MainForm.ListForm!ListBox but the vb doesnt recogize or cnt find the objects


please help

Regards
 
Look at my FAQ on this issue in the FAQ Forum.
 

Users who are viewing this thread

Back
Top Bottom