Many times people will make the mistake of using lookups at table level
instead of using them only at a form level.
this is that it obscures the way lookups actually
is that you have a value
with it. So, for example, I might have a table which stores a client ID of 4.
This ID of 4 refers exclusively (primary
This would let me go
goes with that ID of 4. So, let’s
an ID of 4 is named “Big Top Tires.” I
in my form or report but, because of normalization principles, I only store
the ID of 4 (now a foreign
identify that record to be associated with that client. But, let’s
actually found out that I had typed in “Big Top Tres” in the client table. That
is not really a problem, IF we have been storing the primary
with that name. However, if we had been storing the text “Big Top Tres” for
each record in our transactions table (for example), we would have to go change
potentially hundreds, if not thousands, of records to correct the error. If, however,
we have been storing the ID associated with this company then we would only
have to change the name in
why this type of
So, many people
a table as the underlying record source in a form or report. This is definitely
not true. You can
underlying record source in a form or report. Queries can be treated just as
tables can.
So, how do you go about using a query as a record source, especially if you
have lookups that you want to show the associated text instead of the ID
number? That is what we will go into right now
the example.
First, we will create the base of the report. I find that it is quite
Wizard to create the base report
trying to create it
Northwind 2007 database. The Northwind database, unfortunately uses
lookups at table level (we’ve tried to
removed those in order to
use them (which would be correct).
We will start with creating a report from the Order Details table which
lookups (OrderID, Product,
We will then start creating a report using the report wizard.
So, as you can see, you can easily make use of queries to present
what you may have previously though inaccessible. This is a great
way to store the data and present it.
|

