473,396 Members | 2,029 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.

filling combo box based on previous combo

JRT
I have a continuous form with 3 comboxes, combo1, combo2 combo3. The
choices in combo2 are dtermined the what is selected in combo1 by using a
where = combo1 statement. The combo is refreshed with code, i.e. . The
combo are freshed with code on after update of previous combo. SO combo1
after update might be me.combo2.requery. It works well to fill in the combo
box with the choices, but problem is when I go down to the next record in
the continuous form and select comb1 record 2 it requeries and removes the
data from combos in record 1. Any body have any ideas here..there must be a
simple fix to this.

tia for anyone who can help me with this.
Nov 13 '05 #1
1 1881
JRT wrote:
I have a continuous form with 3 comboxes, combo1, combo2 combo3. The
choices in combo2 are dtermined the what is selected in combo1 by using a
where = combo1 statement. The combo is refreshed with code, i.e. . The
combo are freshed with code on after update of previous combo. SO combo1
after update might be me.combo2.requery. It works well to fill in the combo
box with the choices, but problem is when I go down to the next record in
the continuous form and select comb1 record 2 it requeries and removes the
data from combos in record 1. Any body have any ideas here..there must be a
simple fix to this.

tia for anyone who can help me with this.


First off, don't panic, it doesn't remove data, the values of the
previous records are preserved, just not displayed.

One thing I used to do was to make a union query or additional criteria
where the id in (select id from mysubform...). This gets the previous
values displayed but introduces the ability to select an out of range
value on the new ones.

What I do now is place a textbox on top of the combo and lookup the
value from the table in it's controlsource.

--
Error reading sig - A)bort R)etry I)nfluence with large hammer
Nov 13 '05 #2

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

Similar topics

1
by: Ryann | last post by:
Hello. I have a form with a series 5 combo-boxes. All 4 contain the same query which lists Parts based on a productID from a previous form. i.e. cboPart1 = Part ID, Part, ProductID Where...
5
by: -elniniol999- | last post by:
I am DESPERATE for a quick reply.. have exhausted my options... i have a table called order details which contains: order id product id product name quantity unit price sale price
6
by: Brian | last post by:
Hello, Basically, I'm running a query on a form's activation, and I'd like to have the results of the query be placed into other fields on the same form automatically. Does anybody know how...
3
by: sparks | last post by:
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....
4
by: virtualgreek | last post by:
Dear All, First of all I would like to take the time to thank you all for your efforts and time spent at this wonderful forum. I have found it very helpful with numerous examples available for...
3
by: joseph.mccastlain | last post by:
Hello All, I am a new user to Access. I am currently designing a database consisting of four tables for multiple users. Rather than bore you with the goals and such, here is what I am...
5
by: NateDogg | last post by:
This is what I am using to filter my combo box based on what is selected in the previous box. Open the properties for the second combo box. Next to the 'Row Source' property, click on the '...'. ...
8
by: tcveltma | last post by:
Hi again, So basically what I'm trying to do is choose two pieces of information (General_Combo, and Pipelines) from combo boxes, then have a text box fill itself in based on the choices I've made...
2
by: franc sutherland | last post by:
Hi, I am using Access 2003. I am having a problem with a pair of combo boxes. I want the second one (cbo_service) to have it's row source limited by the value I select in the first one...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.