Re: Lookup Tables and Field Validation Rule Properties
- From: samah <samah@xxxxxxxxxx>
- Date: Tue, 21 Nov 2006 17:17:44 +0300
Rick Brandt wrote:
"samah" <samah@xxxxxxxxxx> wrote in message news:O6Sz9sWDHHA.3228@xxxxxxxxxxxxxxxxxxxxxxxAccess Novice - WinXp/Access 2003
I am in the process of designing my first database and plan to use this
mainly to teach myself Access. The purpose of this database is to store
employees data and track down employees personal info, employment
history, salary history, leave records, Visa/Residence Status (75% of
the employees of the company are expats of different nationalities) etc.
etc..
The tables in my original design contained many lookup fields but after
hanging over in this forum for quite some time now and understanding the
perils of lookup fields, I re-designed the database by removing the
lookup fields and putting them in many small lookup tables.
Now I have ended up with a single subject(employees) database with
numerous small tables, most of them directly linked to the main
employees table through Employees ID.
I feel the need to reduce the number of tables in the database since I
plan to add new features like sales order processing, invoicing etc at a
later stage. So I seek your valuable advice.
When a field value is drawn from a limited list of possible values, what
is the most efficient way of getting that value into the field? through a lookup table or directly into the main table with field validation rule property set to the list of all possible values? Instead of applying the field validation rule property at table level, can it independently be applied at form level? If yes, how?
Thank you for your time in advance.
I have seriously taken your advices given in this forum and really
started with a paper, pencil and a good eraser. So I hope you won't have
any hesitation in helping me! <grin>.
Don't worry about table propagation until you get to a VERY large number. To answer your question you should use both a lookup table to drive a ComboBox on a form for making entries and also use referential integrity between the data table and lookup table to make it impossible to enter a value that is not found in the lookup table.
Thank you, Rick. May be I didn't make myself very clear.
tblEmployees
-----------
empID - PK
empFName
empLName
deptID - FK
<other fields>
tblDepartment
-------------
deptID - PK
deptName
I have only 3 records in the departments tables. Isn't it efficient to remove the department table, replace the deptID(FK) field in the Employees table with a new field named DeptName and setting its field validation rule to (In "DeptName1","DeptName2","DeptName3") ?
The other question I asked was, instead of setting the above validation in the table level, can't I implement it in the Form Level. May be in the form that I am going to use for the data entry of Employees table, I should be able to add a combo box which could display a list of the above values to choose from?
Hope I made myself clear this time.
thanks.
samah.
.
- Follow-Ups:
- Re: Lookup Tables and Field Validation Rule Properties
- From: Rick Brandt
- Re: Lookup Tables and Field Validation Rule Properties
- From: Douglas J. Steele
- Re: Lookup Tables and Field Validation Rule Properties
- References:
- Lookup Tables and Field Validation Rule Properties
- From: samah
- Re: Lookup Tables and Field Validation Rule Properties
- From: Rick Brandt
- Lookup Tables and Field Validation Rule Properties
- Prev by Date: Re: Using Wizard
- Next by Date: Re: Lookup Tables and Field Validation Rule Properties
- Previous by thread: Re: Lookup Tables and Field Validation Rule Properties
- Next by thread: Re: Lookup Tables and Field Validation Rule Properties
- Index(es):
Relevant Pages
|