473,395 Members | 1,335 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,395 software developers and data experts.

Alternative to lookups in tables - questions

Hi,

I've been reading a lot about not using lookups in tables lately.
Thus far, what I've been able to understand from my reading is this:

- Do not use lookup fields in tables because they hide what's really
stored (e.g. 'Joe Bloggs' is displayed, '4' is stored as the ID)

- Instead, use combo boxes on forms, taking their values from tables or
queries.

The area that has caused me problems with lookups is this:
I'm designing a database with three main tables: tblClients, tblSurveys
and tblSurveyItems.
Each record in tblSurveys is linked to a Client, using a lookup to the
ClientName record in tblClients.
Each record in tblSurveys has at least one related record in
tblSurveyItems.
This is because each overall survey (tblSurveys) can consist of one or
more surveys (tblSurveyItems).

I have a form displaying data from tblSurveys, with a combo box to
select ClientName. There is also a button, which opens another form
showing related records from tblSurveyItems, filtering on the SurveyID.

I've created a textbox on the form for tblSurveyItems and set it's
value to =Forms!frmSurveys!ClientName.
This should return the client name as it appears on the Surveys form.
However, due to the table-based lookup, the unique ID of the client is
returned instead.

My questions are:
- What do I need to do to my database to resolve the issue I've
described? I've tried using combo boxes on forms instead of table-based
lookups, but the unique ID is still returned instead of the real
ClientName.

- If I do use combo boxes on forms instead of table-based lookups, what
effect does this have on cascade update and delete?
If a record from tblSurveys is deleted in my database, all the related
records from tblSurveyItems need to be deleted as well.

I feel that I've only heard half the story of how to design a database
without using table-based lookups. If anyone would care to fill me in
on the full procedure, I'd be very grateful.

(I know the description of the database is rather lengthy - if anyone
would prefer to look at the real version instead of reading about it,
I'll gladly email over the file)

Thanks for your help!

Nov 13 '05 #1
1 1437
>
I've created a textbox on the form for tblSurveyItems and set it's
value to =Forms!frmSurveys!ClientName.
This should return the client name as it appears on the Surveys form.
However, due to the table-based lookup, the unique ID of the client is
returned instead.
Set the ControlSource for your textbox like this:
=Forms!frmSurveys!ClientName.Column(1)

My questions are:
- What do I need to do to my database to resolve the issue I've
described? I've tried using combo boxes on forms instead of table-based
lookups, but the unique ID is still returned instead of the real
ClientName.

- If I do use combo boxes on forms instead of table-based lookups, what
effect does this have on cascade update and delete?
If a record from tblSurveys is deleted in my database, all the related
records from tblSurveyItems need to be deleted as well.
Cascade delete should do this.

I feel that I've only heard half the story of how to design a database
without using table-based lookups. If anyone would care to fill me in
on the full procedure, I'd be very grateful.

(I know the description of the database is rather lengthy - if anyone
would prefer to look at the real version instead of reading about it,
I'll gladly email over the file)

Thanks for your help!

Nov 13 '05 #2

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

Similar topics

2
by: Eric Linders | last post by:
Hi everyone. :-) Our site gets a ton of traffic on our contact forms, which collect the standard information (name, address, city, state, zip, home phone, etc.) The form validation is done with...
8
by: Rob Mazur | last post by:
Hi. I'm trying to create a query that pulls information from 3 seperate tables. Here's how I want it to work: User is prompted for SSN Table 1: SSN Name Gender
3
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...
5
by: AnAnimal | last post by:
We are moving a rather large application to the VB.NET platform. This application has a ton of table lookups. ie. code & description or code, category & description or code, class, category &...
6
by: mac | last post by:
Summary: 1. I want to define a column in anMS Access table to be lookups on other tables. 2. The table that is the data source (e.g the "parent" table) has a composite primary key. 3. When...
2
by: rizwaaan | last post by:
i just got a challenge questions to produce the same results without using tables in a google page the link is http://news.google.com/nwshp?hl=en&tab=wn&q= please can someone help me...
2
by: King Ron | last post by:
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...
12
by: king kikapu | last post by:
Hi, it seems that Psyco's author will not port it for the upcoming Python 3000 release :( So, for us who use it we will continue to use CPython 2.5.x version for some time to come. Is there an...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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...

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.