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

Filter records based on a combo box selection

6
Hi
I'm using Access 2003 and I need to figure out how to display the record details based on a combo box selection. For example, when I select a company name in a combo box, how do I get the related customer name and other relevant information, such as:
Company contact
Delegate name
Delegate ID
Delegate Discipline
Course date
Course location
Course requirements
to appear so the result show x of x records?

I really DO NOT understanding the programming side of things, so if this can be done, can someone pleeeeeeeeeeese tell me in plain easy to understand instructions.
Thank you
Kazza :-)
Nov 3 '06 #1
6 19522
PEB
1,418 Expert 1GB
Hi
I suppose your combo box is in a form...

This combo box has his own name...

Create a query that shows the information you need and above the company name type with your respective names

=Forms![YourForm]![YourcOMBObOX]

Open your query and it's ok...

To open it immediately....

You should use a macro... that opens query Can you figure it alone?

Than put this macro in the after update property of your combo box...

And your baby is ready ;)
Nov 4 '06 #2
Kazza
6
Hi
I suppose your combo box is in a form...

This combo box has his own name...

Create a query that shows the information you need and above the company name type with your respective names

=Forms![YourForm]![YourcOMBObOX]

Open your query and it's ok...

To open it immediately....

You should use a macro... that opens query Can you figure it alone?

Than put this macro in the after update property of your combo box...

And your baby is ready ;)
Thanks for the reply, but to be honest its all double dutch to me - i do not understand marcros etc and when ever I have tried to set on up it has gone wrong :-( I am looking for assistance, but i think i need to understand the basics first - so i had better start reading!
Nov 10 '06 #3
MSeda
159 Expert 100+
Tha access query wizard will make just what you want. make a form based on the table or query with the data you want to disply. then before you make the combo box make sure the wizards are turned on, there is a little magic wand thingy on the tool bar usually to the left of the textbox and label buttons. press this and it will stay kind of highlighted looking now when you press the combo button on the tool bar it will open the combo wizard. access will take it from there
Nov 10 '06 #4
PEB
1,418 Expert 1GB
Hey, people don't be scared...

You need to put just this line

=Forms![YourForm]![YourcOMBObOX]

in your query criteria!

And this is all

Forget the macros.. they are for perfectionistes...

Thanks for the reply, but to be honest its all double dutch to me - i do not understand marcros etc and when ever I have tried to set on up it has gone wrong :-( I am looking for assistance, but i think i need to understand the basics first - so i had better start reading!
Nov 19 '06 #5
If you put the line =Forms![YourForm]![YourcOMBObOX] in the criteria of the query, you just get a parameter box labelled with that double dutch...???
Oct 1 '10 #6
Mr Key
132 100+
Hi Kazza!
may be I dont know exactly what you are looking for, but you may try this attached database below! It may give a hint to start with. Open the DB and then read carefuly THE attached AFTER-UPDATE Procedure and try to implement what has been there at the AfterUpdate Event.
Should you have any doubt dont hesitate to ask again! Mark it as answered if it has
Attached Files
File Type: zip Records2003.zip (19.3 KB, 1985 views)
Oct 1 '10 #7

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

Similar topics

11
by: Matt | last post by:
Hi everyone, still pretty new to MySQL. I was wondering if there is a way to automatically filter records based on a mysql userlogin name?? I have serveral databases that I want to combine in...
1
by: arthur-e | last post by:
How can you select records based on more than one combo box - I have a combobox that selects records based on name (I'm sure this has been asked a thousand times - web site answer/link could be...
0
by: ROO | last post by:
Hi Everyone, I have a database table that have 4 field( C1, C2, M1, M2) on my form i have two combo box ComboC and ComboM C1 C2 M1 M2 1 ...
1
by: mchlle | last post by:
I need for a form to display certain records based on the user. If current user = user1 or user2 then open frmNotesAll If current user = user 3 then open frmNotes where counselor id = 2 or 6 or...
2
by: kennygee | last post by:
I am trying to learn VB after many years programming in Access. I am trying to do something in VB that is simple in Access. How do I display record data on a form based on the selection made in a...
94
by: mlcampeau | last post by:
I have a report (JobVacanciesOnly) that has a subreport (JobVacanciesOnlySR) that are based on two separate queries. MY - JobVacancyJobs SELECT Job.Code, Job.Title, Job.Grade, Grade.Minimum,...
8
by: lulu123 | last post by:
I have a database, which keep track of the hours employee worked. The employee enter the hours monthly. The table is set to like, Project/ Month/ Hour/ what i want to do is: I want to lock...
6
by: BEETHOVEN | last post by:
I have an option group called Issue_Type on my main form F1_Member_Demographics_Main. When I select one of the 3 options on the main form from the option group Issue_Type I want to limit the sub...
4
by: dekk | last post by:
I am trying to populate a text field from the combo selection. I have the following update event in the combo box Private Sub cboContract_AfterUpdate() Me!txtDesc = Me!cboContract.Column(1)...
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?
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
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,...
0
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...
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,...

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.