473,765 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Populate list box from a combo box. List box must be able to show record

4 New Member
I have been trying to figure out this problem for a while.

All I want to do is have a combo box populate a list box and the list box change to the record based on the users choice.

The combo box is active and find a record based on user input.

The list box gets its values from the combo box and the list box can also change the form to the record chosen by the user.

The list box and combo box are on the same form.

Help needed :)

TIA - kevin
Nov 14 '09 #1
5 4177
missinglinq
3,532 Recognized Expert Specialist
Perhaps I've misunderstood, but why would you need a combobox and a listbox on a single form, both of which can be used to find a record?

Welcome to Bytes!

Linq ;0)>
Nov 14 '09 #2
Kaosman
4 New Member
What I need:
The first list box pulls all records from the query with no filter.

The second list box only shows records that have been grouped together by category. So for example if there are 100 records in the table total and 10 of those have been grouped with name "website" as the category. If any one of those 10 records are looked at the second list box will auto populate with the rest of the records in the "website" group only.

Then any one of those records on second list form can be clicked and form will change to that record.

Im thinking "NOW" that the best way to get the results from for the second list box is not from the first list box but from the group category. Somehow I need to code the second list box to show all the records in which they are grouped together for the current viewed record on the form. The user will see all the other records in the list box that are grouped in the same category and be able to click them to have the form change to that record.

Remember this is all happening on the same form, no popup forms or other stuff, just a simple lookup of similar records that can be clicked like a regular list box would allow.

I hope I am explaining this correctly.

The key is to have the second list box show only the records that match the current record being viewed by the user. If the user sees another record they want to look that are in the same group they would click it and the form would change to that record.


thanks

kevin
Nov 14 '09 #3
missinglinq
3,532 Recognized Expert Specialist
This is a variation of Cascading Comboboxes/Listboxes. Here's a tutorial on the subject by Rabbit, late of our site:

http://bytes.com/topic/access/insigh...mbo-list-boxes

Linq ;0)>
Nov 14 '09 #4
Kaosman
4 New Member
Thank you i will study the link you sentthis evening.


Thanks again :)
Nov 15 '09 #5
Kaosman
4 New Member
Enclosed is my movie database, it is very simple in design. I just need the green List Box to work as it should and only show those records that are grouped in the same group as the current record being viewed. This way I can see all the other movies that are in the same group in the green List Box and be able to click them to see the record details on the main form.


Thanks for taking your time to help


kevin
Attached Files
File Type: zip Movie Database.zip (40.0 KB, 272 views)
Nov 15 '09 #6

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

Similar topics

10
1879
by: Lukelrc | last post by:
Hi, I have an array - ListOfFiles - that i want use to populate an combo. I've attempted to do it like this <select name="txtAvailable" rows="4" id="txtAvailable"> <Script Language = "vbscript" Runat = "Server"> For i = 0 to Count -1 Response.Write"<OPTION>" & ListOfFiles(i) & "</OPTION>"
2
2906
by: Dave McKie | last post by:
Hi all I am trying to Populate a combo box from a selection in an adjacent Listview. The Listview lists as a string the field names of 4 different fields in tblFile. So far I can populate the combo box with the correct number of records(only 4 in the test database) but the data is the actual string being passed which is actually the right field....just not the data in the field. Here is my code so far that fills the combo box with the...
1
2812
by: bbcdancer | last post by:
Is it possible to restrict the length of a text box in MS Access using VBA on condition to what is selected in a list combo box. Scenario: 1. I have a list combo box containing: AA BBB CCCC
4
64631
Rabbit
by: Rabbit | last post by:
Cascading Combo/List Boxes This tutorial is to guide you in the creation of Cascading combo/list boxes. That is when you have multiple combo/list boxes where the selection of an option in one determines the available options in the other. TERMINOLOGY Row Source: The table/query from which the Combo Box or List Box gets its values. Note: There are other types of row sources that can be used but for simplicity we will stick with Tables...
11
3099
by: mezmerize | last post by:
Firstly a description of the situation to give you an insight. have a table of motorcycles (Registration no.,makes,models,colour,no.owners, etc. and i would like to be able to run a query that allowed me to view only bikes of one make. i would like to know if there is way of making the parameter prompt a list/combo box contain the values within the motorcycles table so only motorcycle makes within the table can be queried (searched). ive...
2
1188
by: tolukosi | last post by:
Guys, I am working on my school project using Visual Basic to take Customer Record, Staff Record and To Take Drug Record all in a Drug Store. It will be an inventory software that will take order from customers and make inventory of drugs in database. I have tried up to this place but I think I am having some problems continuing. I want to populate a combo box with data from an Access Database but has been giving me problems. I used an ADOC...
4
9251
by: =?Utf-8?B?R3JlZw==?= | last post by:
Can someone give me e simple example of to populate a combo box / list box using an ArrayList? THanks.
20
3164
by: MarkP | last post by:
Hello, I have a combo box that feeds a list box1 which in turn feed another list box2. List box2 values need to remain in list box2 when list box1 has been change by the combo. The content of list box2 will be stored in a table. I guess this is 2 part question: Are there any examples out there on list box2 used as a collection point, and how hard would it be to store the contents of list box2 in a table? Thank you for your help.
0
10156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8831
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7375
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
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 we have to send another system

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.