0

Hi there.

I've got two forms (form1.frm and frmoptions.frm.) The first form contains a variable (multip = 2.) When I click on the first form let's say I want to see that variable in the second form's command button's caption. This doesn't work. All I get is a blank command button (without the variable as the caption.)

I've declared the variable as 'Public' in the General / Declarations section (in the first form.) And I use the code below to see the second form...

frmoptions.Show
frmoptions.SetFocus

Any suggestions? Thanks :)

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by Prozeen
0

Thanks plusplus.

I didn't think to use the "form1" part of the code, because I thought this would be automatically known by vb due to the fact that it is a Public variable.

Nice one, thanks :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.