473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Form controlling

Hi again,

I have a question regarding how to control one form's values from another form. I have figured out that the best spot for this control comes from the OKButton on a form called "receptor". Based on the value of one of the option buttons chosen in this form, i want to set the value of a set of textboxes to zero in another form called "frmrisksettings".

So far, all my ideas for controlling this have failed. any ideas? Below is the last thing i tried that i was sure should work in the form "receptor". I dont think i need to make any changes to the other form.

To clarify, if Option1(0) or Option1(1) are selected, then the values should be those found in the default file, and no changes should occur.

' set default values
If Option1(2).Value = True Then
frmrisksettings!Text9(i).text = 0
frmrisksettings!Text9(i).Enabled = False
End If

Within the frmrisksettings, Text9(i).text belongs to a variable called:
risksetGroup(3, i), where i goes from 0 to 2. this "i" however, does not correspond to the same "i" of the option button above. It is a separate deal.

Thanks!
Aug 28 '07 #1
0 938

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Andrey Mosienko | last post by:
We are using PostgreSQL about two years beginning from version 7.0. I have one question about starting postmaster: Is there way to detach it from the controlling terminal under FreeBSD? My...
1
by: Ant | last post by:
I have a form ‘Main’ and it is maximised, on the form is a command button to open another form over the top I always want it to open in a window restored, currently sometimes it opens maximised...
2
by: Robert | last post by:
In VB 6.0 I could control the properties of one form by writing code in another form, something like this: In the code of Form2 I would write Form1.Visible=True. How can I do this in VB. NET?
2
by: Sid Price | last post by:
Hello, I am having a problem with a windows form when controlling its visibility. My application has a form that displays a timing function. Normally the timing form is hidden. An object has a...
6
by: kaosyeti | last post by:
hey.... i have a duplicate record issue i could use some help with. on a form that has 2 unbound controls, txtboxyear and cboxmonth, together will automatically fill in an invisible txtboxdate...
11
by: TD | last post by:
I'm looking for input into my decision to switch to ADO and unbound forms. I get tired of having to block all of the ways a user can unknowingly save a record, like using the PageUp, PageDown keys...
0
by: M G Henry | last post by:
I am using Access 2003 and have a form with two subforms on them. I would like to be able to use a command button to add the row of data ( 5 fields ) that are completed on the subform, as well as...
4
by: Regnab | last post by:
I've got a form - "frmLookup" (with a subform) that works very happily on its own. The form has a list box, which when updated requeries the subform to display the appropriate results. The...
10
by: menashay | last post by:
Hello, I am absolute beginner in C# so pardon me if the following question is too easy. I have a form with a one button. When I click the button I want to display a message that reads...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.