Run Private Sub On Another Form

donjuay
02-20-2005, 04:14 AM
Cant seem to get this to work. I have a command button on form 1. When I press this I want Form2 to load and to run Private Sub Score1() on Form 2. Running Score1() is specific to this command button only.

So far I have

Private Sub HoverCommand2_Click()
Form2.Show

End Sub

Any ideas on how to run Score() on Form2

Thanks in advance

Shurik12
02-20-2005, 05:57 AM
Why not to make that Score1 sub public
and call it from


Private Sub HoverCommand2_Click()
Form2.FunctionNameHere
End Sub

End Sub

donjuay
02-20-2005, 07:16 AM
Jeez,

That Simple. Don't I feel stupid. Thanks mate, much appreciated

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum