472,378 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

trying to force a combo box to update

I have a combo box that when you go to the next combo box it is
filtered based on the value in the previous one.

so if combo box 1 has fred as its value then combo box 2 has
1 2 3 for values.

this works fine the first time thru.

but later if I change combo box 1 combo box 2 list is still displaying
the list form the previous value in combo box 1.

its a timing error or something since I can click the row source
that is a sql statement and go to the query and come back and then box
2 is displaying the correct values.
so 1 sets 2 but after I chance 1 2 is still displaying the old list
based on what it was filtered in by 1.

me.requery does nothing to help..on after update or combo box 1
any help is greatly appreciated...I just can't get 2 to update when 1
is changed.
Feb 16 '07 #1
3 3575
In the AfterUpdate event of combo1 put the line:
combo2.requery

Cheers,
Jason Lepack
On Feb 16, 9:39 am, sparks <jstal...@swbell.netwrote:
I have a combo box that when you go to the next combo box it is
filtered based on the value in the previous one.

so if combo box 1 has fred as its value then combo box 2 has
1 2 3 for values.

this works fine the first time thru.

but later if I change combo box 1 combo box 2 list is still displaying
the list form the previous value in combo box 1.

its a timing error or something since I can click the row source
that is a sql statement and go to the query and come back and then box
2 is displaying the correct values.

so 1 sets 2 but after I chance 1 2 is still displaying the old list
based on what it was filtered in by 1.

me.requery does nothing to help..on after update or combo box 1

any help is greatly appreciated...I just can't get 2 to update when 1
is changed.

Feb 16 '07 #2
That was it....I almost said that didn't work till I found out I
either can't type or can't spell.....which ones sounds better LOL

thanks for your help

On 16 Feb 2007 06:47:11 -0800, "Jason Lepack" <jl*****@gmail.com>
wrote:
>In the AfterUpdate event of combo1 put the line:
combo2.requery

Cheers,
Jason Lepack
On Feb 16, 9:39 am, sparks <jstal...@swbell.netwrote:
>I have a combo box that when you go to the next combo box it is
filtered based on the value in the previous one.

so if combo box 1 has fred as its value then combo box 2 has
1 2 3 for values.

this works fine the first time thru.

but later if I change combo box 1 combo box 2 list is still displaying
the list form the previous value in combo box 1.

its a timing error or something since I can click the row source
that is a sql statement and go to the query and come back and then box
2 is displaying the correct values.

so 1 sets 2 but after I chance 1 2 is still displaying the old list
based on what it was filtered in by 1.

me.requery does nothing to help..on after update or combo box 1

any help is greatly appreciated...I just can't get 2 to update when 1
is changed.
Feb 16 '07 #3
Fat thumbs... ;)

Glad to hear it worked.

On Feb 16, 10:11 am, sparks <jstal...@swbell.netwrote:
That was it....I almost said that didn't work till I found out I
either can't type or can't spell.....which ones sounds better LOL

thanks for your help

On 16 Feb 2007 06:47:11 -0800, "Jason Lepack" <jlep...@gmail.com>
wrote:
In the AfterUpdate event of combo1 put the line:
combo2.requery
Cheers,
Jason Lepack
On Feb 16, 9:39 am, sparks <jstal...@swbell.netwrote:
I have a combo box that when you go to the next combo box it is
filtered based on the value in the previous one.
so if combo box 1 has fred as its value then combo box 2 has
1 2 3 for values.
this works fine the first time thru.
but later if I change combo box 1 combo box 2 list is still displaying
the list form the previous value in combo box 1.
its a timing error or something since I can click the row source
that is a sql statement and go to the query and come back and then box
2 is displaying the correct values.
so 1 sets 2 but after I chance 1 2 is still displaying the old list
based on what it was filtered in by 1.
me.requery does nothing to help..on after update or combo box 1
any help is greatly appreciated...I just can't get 2 to update when 1
is changed.- Hide quoted text -

- Show quoted text -

Feb 16 '07 #4

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

Similar topics

1
by: Maria Joao | last post by:
I have two synchronized combo boxes and after the selection of the desired record, I need the user to open the related report, by pressing a button. My problem is that a combo box doesn't update...
6
by: Support4John | last post by:
a2k (9.0.6926) SP-3 Jet 4.0 SP-7 I have a form with combo box field that allows the user to select from the combo box or type in the field value that may or maynot be in the combo box field. ...
3
by: buht | last post by:
Hello Everyone, Fairly new to c# here and have a question regarding scrollbars, particularly a vertical scrollbar. It looks like my options are restricted for the textbox scrollbars being...
1
by: James | last post by:
I am used to VB6 but need to develop something in .Net. I need to create several bound combo-boxes which will use lookup tables to get their values. I created a form using the dataform wizard....
2
by: Ausclad | last post by:
How Would you implement this? I have an existing Access application that needs to be converted to .net I am restricted to use the existing database design. One of the areas is a timesheet...
6
by: bryanbabula | last post by:
I have a question about overriding i was wondering if anyone could help me with, or even suggesting a better/different way. I have no idea if this can even be done or not. I was wondering if there...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
4
by: injanib via AccessMonster.com | last post by:
I have a combo box called "Recipient" who's row source is a table called "Main" with three columns. The three columns are "Name", "Floor", "Location". Following the combo box are two fields called...
12
by: Richard Penfold | last post by:
I have a form with a subform containing the combo box I want to update. I have a command button in the header of the main form that launches a report in print preview mode. I want to update the...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

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.