Keroleen Posted October 14, 2003 Posted October 14, 2003 Is this possible in VB? What I want to do is: Form1: There are two radio buttons that signify the number of weeks in a year. It can be either 52 or 53 (it just is this year..dont ask why) ..and add some logic to it If rdbtn_52.Checked Then WeeksInYear = 52 ElseIf rdbtn_53.Checked() Then WeeksInYear = 53 End If Form2: This is one of the main timesheet forms. I would like to use the variable WeeksInYear value (either 52 or 53) here to determine which If..then control to use. If WeeksInYear = 52 Then..... Thanks in advance. Quote
Administrators PlausiblyDamp Posted October 14, 2003 Administrators Posted October 14, 2003 http://www.xtremedotnettalk.com/t77603.html Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Keroleen Posted October 14, 2003 Author Posted October 14, 2003 ..thanks..but not quite what i want. ...I know that routine is for when you want to submit right after you make changes in form1. What i want is like a 'settings or admin' section. I make the changes and then until someone goes and changes the setting, it will be the same. But I need to use the variable from other form? ...should work right? ..i'll try it...thanks Quote
AlexCode Posted October 14, 2003 Posted October 14, 2003 To simplify the issue here I tell u to create a new Module and put the WeeksInYear var in it as Public. This way is the easyer way to make a "global" var... Quote Software bugs are impossible to detect by anybody except the end user.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.