I want to make a Lookup Field based on another Lookup field. In other
words, I have this table A with two fields: ID and Name, where ID is
an Autonumber and Name is a friendly name. Then I have a table B
which links to A via a Lookup Field so that I can select the friendly
name from combo box. Now, I want to have a table C which links to
table B via a lookup field, and only displays the items which are
selected in some combo box of some row of the lookup field from table
A. Granted, I can achieve a similar effect by linking directly to the
source, in this case table A. But now I get a bunch of entries
appearing in the combo box which may be totally irrelevant to my
situation, because the only things that are relevant are those entries
whose text appears in the field in table B. I've tried doing it the
normal way just making a Lookup Field into table B, but what is
displayed are the NUMBERS, not the Text. I think I can do this by
manually changing the Lookup Query, but I don't know what to change it
to because I don't know enough T-SQL.
Thanks 1 3361
I am convinced that Lookup Fields were one of the worst ideas the Access
team has implemented. They are a violation of good relational database
design practices, they obscure what is really stored, and judging from the
number of questions about them here in the newsgroup, cause more problems
than they solve.
At best, I can see them being useful for a novice or casual end-user who
only works in datasheet view.
I'd say you are confusing functionality that should be implemented, and can
be implemented properly, in Forms with functionality that should be
implemented in Tables.
My advice is eliminate both the Lookup Fields, and use ComboBoxes in Forms
to display the information. You can coordinate the ComboBoxes to limit the
values in the dropdown list of one Combo by the value selected in another.
Or, you can do what you want, easily, in a Query.
Larry Linson
Microsoft Access MVP
"Zachary Turner" <di***********@ gmail.com> wrote in message
news:47******** *************** ***@posting.goo gle.com... I want to make a Lookup Field based on another Lookup field. In other words, I have this table A with two fields: ID and Name, where ID is an Autonumber and Name is a friendly name. Then I have a table B which links to A via a Lookup Field so that I can select the friendly name from combo box. Now, I want to have a table C which links to table B via a lookup field, and only displays the items which are selected in some combo box of some row of the lookup field from table A. Granted, I can achieve a similar effect by linking directly to the source, in this case table A. But now I get a bunch of entries appearing in the combo box which may be totally irrelevant to my situation, because the only things that are relevant are those entries whose text appears in the field in table B. I've tried doing it the normal way just making a Lookup Field into table B, but what is displayed are the NUMBERS, not the Text. I think I can do this by manually changing the Lookup Query, but I don't know what to change it to because I don't know enough T-SQL.
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Adrian Charteris |
last post by:
Hi I'm currently trying to use a lookup table for converting one xml
doc to another using a XSLT transformation. Ideally I would like my
first xml doc to be converted to my second xml doc below.
All that I want is to replace node names with a matching value in the
lookup table and place the result into an field attribute pair:
Example: id to be renamed instrument_id thus
<id type="master">asset #132</id> becomes
<field...
|
by: Sophie Bradshaw |
last post by:
i was wondering if anyone could possibly help me!
i have a ms access database, and in one of the tables, one of the
fields is a lookup column, with several possible values. what i want
to do is when i create a record and choose a value for the lookup, i
want the next record to default to the value in the previous record in
the lookup field.
e.g. if record 1 has 'example' as the value for the lookup field,
record 2, when tabbed into it...
|
by: Koen |
last post by:
Hi all,
My application uses a lot of lookup tables.
I've splitted the frontend (forms, reports, etc) from the backend (data).
The database has around 10 different users.
The values in the lookup tables are not likely to change.
Question 1: Should I include them in the backend (with rest of data) or the
frontend?
|
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...
|
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...
| |
by: Paul H |
last post by:
Say I have a table called tblPeopleInfo, one of the fields in the table is
called FavouriteFruit. The FavouriteFruit field is a lookup field and will
contain Apples, Oranges, Grapes etc..The list can be added to by users of
the database. What is the best way to construct this lookup?
Should it lookup a Table/Query or a Value List?
If it looks up to a Table/Query should the lookup table just have a single
"text" field or should it have...
|
by: ganeshb |
last post by:
Hi,
What C statement(s) would translate to indirect jmp in assembly? I know
that function pointer invocation would translate to indirect 'call'
instruction, but I am not sure what will lead to indirect jmp (eg. jmp
<register>).
Ganesh
|
by: Paul H |
last post by:
Suppose I have a table called tblPeople and I want a field to illustrate
whether each person prefers cats or dogs. I could do it one of three ways.
1. A plain text field
Create a text field in tblPeople called PreferredPet.
2. A lookup field that stores text values.
Create a text field in tblPeople called PreferredPetID and use it to lookup
an identical text field in tblPreferredPets.
|
by: Lance Williams |
last post by:
How can you programatically tell if a field in a table is a lookup field? I am looping through the fields collection and I want to see if any fields are lookup fields.
Is there a property, or something taht will tell me if the field is a lookup field.
I need to do this at the table level and not at the form level because if a field is a lookup field then I do certain things in the code.
BTW, lookup fields suck.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
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...
|
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...
|
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,...
|
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...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |