Re: Very slow query
- From: "Alain T." <thibault.alain@xxxxxxxxx>
- Date: Tue, 26 Dec 2006 10:13:56 -0500
Hi Tina!
Thanks for the following informations. I will study them in the next few
days.
Meanwhile, as my database is in production for some months now, how will I
replace correctly my existing key fields?
I thought about those steps :
1. create a new fied in the Main table, like cSex
2. replace cSex with text value from secondary table based on the value in
the Main table called Sex (how will I do that?)
3. delete the field Sex in the Main table
4. rename the field cSex to Sex in the Main table
5. Repeat all those steps for my others 20 secondary tables...
After all those operations, modify all my secondary tables to remove all the
keys and keep only one field ("text value") and link the fields from those
tables to my fieds on the Main table (step 3 below).
What do you think of that?
Alain T.
"tina" <nospam@xxxxxxxxxxx> a écrit dans le message de news:
0sXjh.575904$QZ1.83182@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
As I am not at all an Access expert
well, i'm not an Access "expert" either, Alain, so we have something in
common! ;)
can you guide me a bit please, ie what
do the experts do instead?
experienced Access developers draw a sharp line between database structure
and user interface. tables fall cleanly into the structure side, and the
focus is on data normalization and data integrity. queries, forms, and
reports fall into the user interface category; the focus here is on making
the data available to the user for display and interaction, in a format
that
is intuitive, easy to use, and supports the user's work process.
*presenting* the "text values" from secondary tables to the user, is a
user
interface issue, and so it is handled at the query/form/report level - not
at the table level. recommend you use the following guidelines:
1) make sure your tables' relationships are correctly set up and
referential
integrity enforced, at the table level, using the Relationships window.
2) make sure that table fields that should be indexed, *are*, and fields
that don't need an index, *are not*.
3) in a query, add the "secondary" tables that are needed so that you can
show the "text value" fields associated with the key values stored in the
primary data table(s).
4) in reports, base the report on the type of query described above
(ususally).
5) in forms, base the form on the primary data table, and use combobox or
listbox controls with RowSource property set to the appropriate secondary
table, so that the user has access to the "text values" stored in the
secondary table.
if you're not familiar with combo box controls, suggest you read up on
them,
and their unique properties, in Access Help so that you have a thorough
understanding of how they work and how to use them.
hth
.
- Follow-Ups:
- Re: Very slow query
- From: tina
- Re: Very slow query
- References:
- Very slow query
- From: Alain T.
- Re: Very slow query
- From: tina
- Re: Very slow query
- From: Alain T.
- Re: Very slow query
- From: tina
- Very slow query
- Prev by Date: Re: add a field in a query for ALL observations, where only the value of the field is available for only few, rest should be zero
- Next by Date: Re: ALTER TABLE ?
- Previous by thread: Re: Very slow query
- Next by thread: Re: Very slow query
- Index(es):
Relevant Pages
|