473,402 Members | 2,061 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,402 software developers and data experts.

Linked Listboxes

Lets say I've got a table that may looks a bit like this....

ID Name Log
-----------------
01 Fred Went Bowling
02 Wilma Hit Fred over the head with a club
03 Fred Says Ouch!
04 Barney Mows Freds Lawn with a baby triceratops
05 Betty Goes shopping
06 Spock Does that Vulcan nervepinch thing
07 Kirk Gets in a fist fight and then kisses the girl
08 Spock Does a mindmeld on McCoy
09 Fred Yells 'Yabba dabba do'

Is it possible to create two listboxes so that the first would be a
DISTINCT version of the name and the second would contain all the
insances of that name?

e.g

Listbox 1
*Fred* <Selected>
Wilma
Barney
Betty
Spock
Kirk

Listbox 2
Went Bowling
Says Ouch!
Yells 'Yabba Dabba Do'

How do I link the second to the first?

Better still, is there a nested listbox type object with those little
[+] 'expand' icons so the table would appear like the subdatasheet
thing does (only with one table instead of two)?
Nov 13 '05 #1
1 2042
We like to call this "Cascading Combo Boxes".

1. on your form create 2 combo boxes.
2. In top combo box (cbo1) make the recordsource show all names,
grouped. Make sure you bind cbo1 to the column that contains the
linkable data (in this case Name). Hopefully you can link to a primary
key field.
3. In the bottom combo box (cbo2) create the recordset linking to cbo1.
In the criteria for the correct field, right-click and choose "Build".
4. Point to the correct object (cbo1)
5. Run form.
6. Select name in cbo1
7. Press <F9> to refresh cbo2

Let me know if you get this working.

Nov 13 '05 #2

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

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
4
by: bill yeager | last post by:
I have several template columns inside of a datagrid. Inside of these template columns are databound listboxes: <asp:TemplateColumn HeaderText="Crew Chiefs"> <ItemTemplate> <asp:listbox...
0
by: Terry D | last post by:
I'm having an issue with an ASP.NET page (VS.NET 2003, VB.NET, Oracle back end). The page uses the standard VS.NET grid to display the records from a particular table. The user can edit certain...
1
by: Ryan Ternier | last post by:
I have two listboxes, and allow users to move items between them via the following function: function SwitchList(fbox, tbox){ var arrFbox = new Array(); var arrTbox = new Array(); var...
0
by: Luis Esteban Valencia | last post by:
have a problem and I'm not sure how to handle/fix it. I have three listboxes on my page. The first listbox has a list of software products. When you select an item in the Products listbox, then...
4
by: Rod Gill | last post by:
Hi, I want to have two Listboxes side by side in a windows form. Listbox1 will have a list of Programs I want Listbox2 to show a list of all projects belonging to the selected program and for...
4
by: gjoneshtfc | last post by:
Hello I currently have a page with car manufacturers in a dynamic form menu. Users can select one and click submit to find available cars by that manufacturer. What i now need is a second menu...
1
by: technocraze | last post by:
Hi guys, I am having trouble resolving this error. Below mentioned is my code and implmentation. MS Acess is my front end and sql server is my backend. What i want to achieve is to be...
7
by: franc sutherland | last post by:
Hi everyone, I am using Access 2003. I have a database with a table in it which is linked to an excel spreadsheet. When I install the database on someone else's system, the pathname to the...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.