473,396 Members | 1,738 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,396 software developers and data experts.

Subform Option box

Hello :)
I have option boxes that return text values in a subform with a one on one relationship between main form and subform (contract number). Everything seems to work ok, and values are returned to the table as they should be, however when I use the option boxes on one subform it changes the option boxes on all subforms (without recording the values on the other forms ) >.< its driving me nuts!

Any sugestions greatfully appreciated!

keep smiling
Jul 8 '08 #1
4 1468
puppydogbuddy
1,923 Expert 1GB
You did not provide much info to go on, but it sounds like you created "dependent" option boxes, in which the row source of each of the option boxes references the row source of another combobox. Then when the combobox that has focus is requeried, the row sources of any comboboxes that are dependent on that combobox are updated. You need to post the row source of your comboboxes and any code that you have in the AfterUpdate Event of each combobox.
Jul 9 '08 #2
Hey :) thanks for replying!

Here is the code I've used.. there are 5 option groups in the subform that return text values. This is the code I've used

Private Sub optCourseware_AfterUpdate()
Me!Courseware = Choose(Me!optCourseware, "Generic courseware badged", "Courseware being developed", "Courseware already exists", "Not applicable")
End Sub

and the Subform OnCurrent event

Private Sub Form_Current()
Select Case Me!Courseware
Case "Generic courseware badged"
Me!optCourseware = 1
Case "Courseware being developed"
Me!optCourseware = 2
Case "Courseware already exists"
Me!optCourseware = 3
Case "Not applicable"
Me!optCourseware = 4
Case Else
Me!Courseware = Null
End Select

There is a one-to-one relationisip between Contract numbe on the main form and contract number on the subform.

When I choose options the text value is returned to the table for that contract but all the dots in the option boxes through all the records change to read the same (though those values are not returned to the table for the other records)

Does that make sense..

anyway all help greatfully received!

: )
Jul 9 '08 #3
puppydogbuddy
1,923 Expert 1GB
OK, seeing your code helps...you've got an option group with 4 option buttons. I believe your problem is on this line:

Case Else
Me!Courseware = Null

Set the default value in the option group = 0 (don't add an option button) and change the above code to:

Case Else
Me!Courseware = 0

Let me know what happens.
Jul 10 '08 #4
puppydogbuddy
1,923 Expert 1GB
PS:
Another alternative might be: Leave everything as you had it originally, except change the code to:

Case Else
Me!Courseware = ""
Jul 10 '08 #5

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

Similar topics

7
by: kevin.jonas | last post by:
Let say I have a form called "frmMachineSpecs" witht wo subforms, "frmSpecs" and "frmMachines". Both subforms are in datasheet view. The first control in "frmSpecs" is "txtOEM_No". I want to...
1
by: Terrell Miller | last post by:
Help, I'm getting strange results on a subform and I'm wondering if anybody knows what is causing it... I have a form linked to TableA. On that form is a tab control. Page1 is just the controls...
9
by: PC Datasheet | last post by:
I'm stuck on something that seems should be easy and I need some help. My main form has an option group with five options. My subform chooses from different lists depending on which option is...
2
by: Gary T. | last post by:
I have a subform (that is linked to a table) in a blank form. When the table is viewed in its subform state in the form, the headings are not user friendly. ie. CustN I would want it to read in...
0
by: Lauren Quantrell | last post by:
In terms of resources, wondering if it makes a difference in adopting one of the three options below for resizing controls on a form and controls on a subform at the same time. option a.) Put...
20
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
2
by: David W. Fenton | last post by:
I think at various times we've all encountered this problem: A subform is on a main form. From the code of the main form we refer to some property of/control on the child form thus: ...
1
by: Stinky Pete | last post by:
Hi everyone, I have been updating a file that uses a main form that contains a subform (as a datasheet). The main form really does not do anything on opening except maximizes to the users...
1
by: veteranwebdesign | last post by:
Hello, I have a main form. I want forms to open in a subform control box. What is the code for the option group to open the subforms in the control box. I didn't create subforms, I created...
21
jinalpatel
by: jinalpatel | last post by:
I have three option buttons (1 option group): construction projects, non construction projects and aquisition projects. I have created a form with more than 35 data entry fields for each of this...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.