Form Function Call

11-27-2002, 11:08 AM
Hi friends,
I have a form say MainForm thru which im trying to show another form say SubForm...In the subform I have several text boxes which are populated by values taken from a file once the user enters a filename and hits enter (i have put the code in LostFocus of the filename textbox)...

actually the subform is an independent form which im reusing by showing from the Mainform now...

now what i wud want to do is call the Lost_Focus function of the subform from the Mainform so that the textboxes are populated...

how do i activate the Lost_Focus property of a textbox by a call from the MainForm?

Sorry for the confusing question but im confused as well!!!

11-27-2002, 11:12 AM
Only change into SubForm

Private Sub YourTextBox_LostFocus()


Public Sub YourTextbox_LostFocus()

and then you can call YourTextBox_LostFocus sub from MainForm

11-27-2002, 11:14 AM
thanx Mike
it works

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum