473,473 Members | 2,144 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

connecting comboboxes in a subform

Hi guys,

i have a form(myform) where i connected a pair of comboboxes for
managers and supervisers, so when you choose a manager the second
combo shows only those supervisors who report to him. So i had a query
for supervisors list where i put a condition under managers name:
[Forms]![myform]![Fa_manager] and also an after update requery
Me.FA_supervisor.Requery. SO everything worked fine.

Then i had to add more text boxes and combos to my form and it became
really crowded, so i decided to add 2 tabs and two subforms for each
tab accordingly. Managers and supervisors combos were moved on
subform1 and now i'm spinning the weels trying to make them work as
they did on a single form.
Tryed to adjust the query condition to [Forms]![subformform1]!
[Fa_manager] and some modification to the Requery code but alas.

Could someone give me a headup how to get over this issue? Maybe i
should create an invisible textbox on myform, connect it to the
managers combobox in the subform1 and requery the new textbox?

Thanks and Regards

Mike
Mar 7 '08 #1
2 1742
On Fri, 7 Mar 2008 08:01:13 -0800 (PST), Mike <mi*************@hotmail.com>
wrote:
>Hi guys,

i have a form(myform) where i connected a pair of comboboxes for
managers and supervisers, so when you choose a manager the second
combo shows only those supervisors who report to him. So i had a query
for supervisors list where i put a condition under managers name:
[Forms]![myform]![Fa_manager] and also an after update requery
Me.FA_supervisor.Requery. SO everything worked fine.

Then i had to add more text boxes and combos to my form and it became
really crowded, so i decided to add 2 tabs and two subforms for each
tab accordingly. Managers and supervisors combos were moved on
subform1 and now i'm spinning the weels trying to make them work as
they did on a single form.
Tryed to adjust the query condition to [Forms]![subformform1]!
[Fa_manager] and some modification to the Requery code but alas.

Could someone give me a headup how to get over this issue? Maybe i
should create an invisible textbox on myform, connect it to the
managers combobox in the subform1 and requery the new textbox?

Thanks and Regards

Mike
The full reference to the combo would be -

Forms!myForm!Subform1.Form!Fa_Manager

Forms!MyForm references the main form.
!Subform1 references the subform CONTROL on the main form.
..Form references the FORM contained within the subform1 CONTROL.
!Fa_Manager references the combo within the subform.
Wayne Gillespie
Gosford NSW Australia
Mar 7 '08 #2
On Mar 7, 12:00*pm, Wayne Gillespie <best...@NOhotmailSPAM.com.au>
wrote:
On Fri, 7 Mar 2008 08:01:13 -0800 (PST), Mike <mikhail_bogo...@hotmail.com>
wrote:


Hi guys,
i have a form(myform) where i connected a pair of comboboxes for
managers and supervisers, so when you choose a manager the second
combo shows only those supervisors who report to him. So i had a query
for supervisors list where i put a condition under managers name:
[Forms]![myform]![Fa_manager] and also an after update requery
Me.FA_supervisor.Requery. SO everything worked fine.
Then i had to add more text boxes and combos to my form and it became
really crowded, so i decided to add *2 tabs and two subforms for each
tab accordingly. Managers and supervisors combos were moved *on
subform1 and now i'm spinning the weels trying to make them work as
they did on a single form.
Tryed to adjust the query condition to [Forms]![subformform1]!
[Fa_manager] and some modification to the Requery code but alas.
Could someone give me a headup how to get over this issue? Maybe i
should create an invisible textbox on myform, connect it to the
managers combobox in the subform1 and requery the new textbox?
Thanks and Regards
Mike

The full reference to the combo would be -

Forms!myForm!Subform1.Form!Fa_Manager

Forms!MyForm references the main form.
!Subform1 references the subform CONTROL on the main form.
.Form references the FORM contained within the subform1 CONTROL.
!Fa_Manager references the combo within the subform.

Wayne Gillespie
Gosford NSW Australia- Hide quoted text -

- Show quoted text -
Thanks Wayne,
i have changed the query reference to [Forms]![frm_fundinput]!
[subfrm_fundinput2].[form]![Fa_manager]
but nothing happens, when i choose Manager the Supervisors combobox
remains empty for some reason.
Do i also have to adjust the AfterUpdate requery code?
Thanks
Mike
Mar 7 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Kathy | last post by:
In my custom menu one menu item opens a form to add new Makes to TblMakes and another menu item opens a form to add new Models to TblModels. I have a form that has a combobox for Makes and a...
1
by: Marcia | last post by:
I have a combobox for types of music and a combobox for artists. The rowsource query for the artists combobox associates artists with different types of music. In the query I use the name of the...
0
by: johnson_cy | last post by:
I am using Access 2000. My main form has a record source of a table (employeeTbl with key of . It is filtering the record results. My subform and mainform have the link child/link master set...
3
by: cyber0ne | last post by:
Probably another easy question... I have two data tables. One holds the main data, the other holds additional data on a many-to-one relationship with the main data. Using the forms wizard, my...
9
by: cellomt | last post by:
In Access 2003 I have a form that has synchronized combo box, linked by criteria in their separate queries. Example query criteria for combobox2: IIF(IsNull(!!), ,!!) thus limiting the...
2
by: Parasyke | last post by:
I have a form with two comboboxes: one for manufacturers and one for product types. These after updating populate the results of the queries envolved to a subform. Works great. I choose "IBM" from...
3
by: BASSPU03 | last post by:
I had to present my DB today, but was granted a chance to fix something about it. In order to fix something, I added something...something that is giving me more trouble than it should. I have to...
3
by: Major Doug | last post by:
Hello: situation--I have a research database. Each record in the database consists of 10 fields. I used access97 to rack/stack my database; very easy in the beginning. I created a form with a...
0
by: fenners | last post by:
Hi new to programming VBA in Access 2003. I have a form which has two comboboxes. The first combobox uses the folowing rowsource. SELECT Outputs_Classification.Output_id,...
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
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...
1
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...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.