473,756 Members | 8,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Discussion: using combobox & listbox lookups in table field design

Ola all. In responding to a recent post requesting help with a search
issue, I recommended using a combo box lookup in the table design.
"paii, Ron" (no relation) posted this reply:

" There are many posts in this group explaining the pitfalls of using
the
lookup feature in tables. Best practice appears to be, keep the
lookup in
the forms using combo box or list box."

I will grant that, in a theoretical world, best practice is to handle
data only on the data side, and leave the interface on the GUI side.
Point taken.

However, I think that its possible to distinguish between 'pitfalls'
and 'annoyances', and also necessary to distinguish between database
theory and production application design.

In my experience the only major annoyance with table field lookups is
that it's often confusing for users because a standard search for
'known' displayed values will return no hits. That annoyance is way
offset by the fact that by properly structuring table field lookups,
those lookup features are automatically propagated thru to the form -
in the form designer you can drag and drop the fully designed lookup
control on any number of forms. 'Design once - instance many'

I'm wondering what you all think about this - are there other
'pitfalls' that I'm not aware of? Does the convenience of a design
shortcut offset the stigmata incurred by breaking the taboo of pure
relational design? Any strong opinions? Fill me in...

Ron, King of Chi

May 10 '07 #1
2 2901
"Lookup fields" in Tables are _only_ useful to users who do data entry or
manipulation in Table Datasheet view. If someone else has to go in later to
correct or enhance your Database, they are very likely to cause not just
irritation, but delays -- of course, it is something that can be dealt with,
but delays cost. For me, that would also apply if I have to go back and work
on my own database months later; and I believe that to be true for anyone
who does not a permanent photographic memory.

And, because there are so many _things that can go wrong_, even
unintentionally , when working in Table Datasheet view that I just don't
recommend it, anyway (and the same is true of most experienced Access
users/developers that I know). So, I strongly recommend _against_ using
lookup fields (and subdatasheets and multi-value fields, aka 'complex
data').

As an aside, I'm not privy to the underlying reasons for the Access team's
design decisions, but I know there was / is a Marketing emphasis on
supporting SharePoint data with Office 2007, and without multi-value fields,
Access couldn't / wouldn't fully support SharePoint data.

There are good and practical reasons for "pure relational design"
priciples -- it's not just an academic exercise, if that's why you were
implying.

If you are an end-user not advanced beyond Table Datasheet view, and you are
the only one ever to use your databases, and you are sure to remember that a
particular field is a Lookup Field OR you will never create a Query that
would refer to that Field, then Lookup Fields will likely do you little or
no harm. Otherwise, avoid them so they won't "rise up later and bite you in
the tender places".

Larry Linson
Microsoft Access MVP
May 10 '07 #2
On May 10, 11:51 am, "Larry Linson" <boun...@localh ost.notwrote:
...
As an aside, I'm not privy to the underlying reasons for the Access team's
design decisions, but I know there was / is a Marketing emphasis on
supporting SharePoint data with Office 2007, and without multi-value fields,
Access couldn't / wouldn't fully support SharePoint data.
Larry,

Do you think that the existence of InfoPath within SharePoint affected
any other deprecation decisions such as DAP's?

James A. Fortune
CD********@Fort uneJames.com

May 10 '07 #3

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

Similar topics

2
4445
by: Marc | last post by:
I'm back in the Access development mode and seem to have forgotten how to do 2 things that should be simple. I have a database with a table of contacts, companies and activities. The idea is that I'll put in a list of companies, a bunch of contacts that work at each company, and an activities form that allows me to input every activity I do for each contact. The activities table includes a lookup field (also named contactID) for...
3
1980
by: Pete | last post by:
I'm currently doing a database that uses comboboxes to look up records in other tables, whether they be lookup tables or otherwise. When a user needs to add an item to one of these tables, the user has to either double-click on the combobox or go to the appropriate form via an item on the main menu. So, using an example, if someone is entering enrollment information, they would definitely need a student and a course. If the course has...
1
2638
by: Seth Delaney | last post by:
I have a form with a combobox and a list box. The combobox will list records (names of queries) that are entered in a table called tblListName. I have the combobox set to get its values from this table. tblListName has two fields: ListName and QueryName where QueryName is the actual name of the query and ListName is a "friendly name" to be displayed. No problem, I'm good so far. However, I have trouble here: I want the listbox to list...
2
3054
by: jaYPee | last post by:
i have successfully added a combobox control in datagrid. this is the code i have created but don't show up the record from another table. Private Sub AddCustomDataTableStyle() Dim ts1 As DataGridTableStyle ts1 = New DataGridTableStyle() ts1.MappingName = "SchYrSemCourseJoin" ' Set other properties. ts1.AlternatingBackColor = Color.LightGray
1
2632
by: Bruce | last post by:
Hi, there, I meet a problem about comboBox binding. -------------------- Database: Northwind Tables: 1) Products 2) Categories I create a form (named "form1") to edit the record from Products table.
6
1530
by: JonnyRotten | last post by:
I have two tables The first has a ID (key) field and enteries for Name The second has a ID field (tied to the first) and then 6 fields for activities. Called Activity1, Activity2, etc etc I would like to make a form that when they selected their Name from a combo box, another combobox would take its selections from a query tied to their name and put their 6 Activities into the second combo box. Writing the query is no problem, I just...
1
1768
by: Robert Dufour | last post by:
I have a table of addresses and it contains a CountryId which points to a table of countries. The datatstructure of the Countries Lookup tables is actually created from three tables - a CountryIdtable - a Countries localized tables and an cultures tables From which I extract a dataset select CountryID - CountryName - Culture name (with inner joins between the three) where CultureName = CurrentCulture.CurrentUiCulture.tostring. So I would...
3
2404
by: Thelma Roslyn Lubkin | last post by:
I have a form whose rowsource is a single table, i.e. 'Datasystem'. I use a combobox to search for records in that table based on the value of a single field, i.e., 'systemname'. I use a multi-select listbox to filter the form on a different field, i.e. 'domain', so that the filtered form can have several allowed values of this field
4
4386
by: netnewbie78 | last post by:
Hello All, I don't have a problem (but maybe I will after I explain). I have a question with regards to something I saw in Access 2007. But first, a little backstory: I'm writing a very small stock database. For now, it will simply track what products come in (Stocks bought by Project) and what products go out (Stocks sold to by Project) . There are three tables: Products, Transactions and Projects.
0
9456
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, 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...
0
9275
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
10040
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
9873
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
9846
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
9713
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...
1
7248
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
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2666
bsmnconsultancy
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...

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.