473,791 Members | 3,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Two Lookup Combo Boxes on Same Form

Hello Everyone,

Access 2000

I've created a bound form to a table. I've added two lookup combo boxes so
the user has a choice of how to look up a record (Individuals or
Organizations). The first is based on [LastName]. The second is based on
the [Organization]. They are both simple combo boxes (I used the combo box
wizard) based on the underlying table. The first one works fine because
every record contains a [LastName]. However, the second one, based on
[Organization], contains blank lines in the comb box list because not every
record is an Organization.

How can I filter the second combo box so that only organizations without
blank lines are listed? I built a query that lists only Organizations
without blanks, but not sure how to tie it all together.

Any ideas on how to do this would be greatly appreciated.

Thanks,

William
Nov 13 '05 #1
2 1741
William Wisnieski wrote:
Hello Everyone,

Access 2000

I've created a bound form to a table. I've added two lookup combo
boxes so the user has a choice of how to look up a record
(Individuals or Organizations). The first is based on [LastName].
The second is based on the [Organization]. They are both simple
combo boxes (I used the combo box wizard) based on the underlying
table. The first one works fine because every record contains a
[LastName]. However, the second one, based on [Organization],
contains blank lines in the comb box list because not every record is
an Organization.

How can I filter the second combo box so that only organizations
without blank lines are listed? I built a query that lists only
Organizations without blanks, but not sure how to tie it all together.


Use that query as the RowSource for the ComboBox.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
Got it......thanks!
"Rick Brandt" <ri*********@ho tmail.com> wrote in message
news:37******** *****@individua l.net...
William Wisnieski wrote:
Hello Everyone,

Access 2000

I've created a bound form to a table. I've added two lookup combo
boxes so the user has a choice of how to look up a record
(Individuals or Organizations). The first is based on [LastName].
The second is based on the [Organization]. They are both simple
combo boxes (I used the combo box wizard) based on the underlying
table. The first one works fine because every record contains a
[LastName]. However, the second one, based on [Organization],
contains blank lines in the comb box list because not every record is
an Organization.

How can I filter the second combo box so that only organizations
without blank lines are listed? I built a query that lists only
Organizations without blanks, but not sure how to tie it all together.


Use that query as the RowSource for the ComboBox.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Nov 13 '05 #3

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

Similar topics

3
2923
by: my-wings | last post by:
I've been reading about how evil Lookup fields in tables are, but I've got to be missing something really basic. I know this subject has been covered before, because I've just spent an hour or two reading about it on google, but there is something I still don't understand, and I'm hoping someone will be willing to explain it to me in small words. Let's say I have a table for addresses, and it includes a field for state. What I would...
3
10668
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems that are hard to find. The main problem I am having right now is that I have a report that is sorted by one of these lookup fields and it only displays the record's ID number. When I add the source table to the query it makes several records...
4
2059
by: Paul | last post by:
Hi, When should I use a list (in table properties: like Ford;Mercedes;BMW;Audi ) and when should I use a lookup table?? And second question: IF I use a lookup table, should I always make a relation (1-to-many) in my relation scheme? Any help is greatly appreciated, I'm a bit puzzled.
1
3369
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. As part of the setup, I specified a new dataset, which included the data & lookup tables. I also specified the relationships when required. I then added a combo box control to my form, following the instructions from
9
2297
by: linda | last post by:
I have a form with some combo boxes used as lookup fields: customer Name, Customer Number, Address, Phone number. I have imported the customer information form another data base. The lookup fields are designed to be able to search for a customer and display all of its info at the bottom of the form. 90% of the customers work fine. There are some that won't display thier info. It seems that only the lookup field for Customer Name is...
6
3683
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
1
1759
by: Nestor01 | last post by:
I use a lookup table which contacts 2 fields (item#, name) When a customer places an order, the order form contains a drop down to select the item by name (from the lookup table). The detail is stored by item # in a customer order table. The form displays the name, but is column bound to the item#. When I want to create a report or form showing what the customer has ordered, I would like to display the name in a textbox control, but the...
1
2365
by: hawk7890 | last post by:
I created an access database using access 2003 with lookup tables and I am having isues where my combo boxes on the form update the lookup table instead of the master table. I have a query to my inventory table and the relationships are done with the query. My form points to the query. I am guessing that either my combo box isn't done correctly or my relationship isn't done correctly. here is an example: main table:tblInventory , has...
14
6561
by: Mark | last post by:
I have a table with a field that uses a combobox to populate values. The Lookup tab within table design mode is the following: Display Control Combo Box Row Source Type Table/Query Row Source SELECT .LastName, .FirstName, .EmployeeNumber FROM ; Bound Column 3 Column Count 3 Column Heads Yes Column Widths 1";1";1"
0
9515
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10427
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...
1
10155
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
9995
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
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
7537
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
5431
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...
1
4110
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
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.