Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted

..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

Posted

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...

Software bugs are impossible to detect by anybody except the end user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...