You are right, the database, considering it is the very first one I have
ever
done and created it with no training in Access (I have been teaching
myself
as I go), is VERY poorly done. The boss wants a separate packing slip for
each product (otherwise phrased as package due to the fact that each
package
includes several products, some of which are the same as one or more of
some
of the other packages). At this point I am just trying to make what I
have
useable while I get a better one designed. I have downloaded a template
from Microsoft's offerings that I want to run by him to save myself some
time
and gray hair.
Each slip IS "hard coded", if you mean what I think you mean. I pulled
the
fields from the field list for specific items for each report. Using the
Stress slip as an example, it lists 6 items that make up the package.
From
customer order to customer order, the only thing that changes is the
quantity
of each item ordered for that package, the customer name, date, record
number, shipping date and method of shipping. If the customer doesn't
want a
certain item in the package it returns a "0" in the quantity field. I
much
prefer the idea of using just one packing slip for all packages myself,
but,
as stated previously, the boss wants what he wants.
In the meantime, in setting up the query to ask which packing slip I want
to
use, would I put it in the same way I set it up to prompt me for a date
(in
the design view of the query I typed in [Enter Date] as the criteria for
the
date field)? But type in [Enter Packing Slip to use], or something
similar
to that?
Thanks again!!!!
Teri.
Rick B said:
If each query pulls the same data, then just save one named query. When
you
open a report in design-view, go to the properties box and look at what
is
in the "Record Source" on the data tab. Just change this to be the same
query for each of your reports (again, assuming that your query pulls all
the data needed for each report).
I'm still not sure why you have nine reports. a packing slip is a
packing
slip. The items ordered would appear in the detail section of the
packing
slip, but the header and footer should not be different. It sounds like
you
have hard-coded each slip to list items. Do you not have a table where
you
selected the items? Maybe I am confused on the structure of your tables.
If you are telling the database what product is ordered, then it seems
like
you would build one report that would print different items depending on
what was ordered. I don't see why you'd build a separate report for each
item you carry. Does that mean that if you add a new product line, you
will
have to create a new report? If so, your data structure is wrong. Any
time
you have to have a developer step in to change the design of your
database
when you expand your product offerings, you can be sure you have a
poorly-designed database. Your users should be able to add new products
without the need to create new tables, queries, forms, or reports.
In any case, if all you are pulling in your query is the customer
shipping
information, then you just need one query. You can create as many
reports
as you want using one stored query. The name of the query does not need
to
match the name of the report. Your query name could be something like
"PackingSlipData".
I do think that you may have some work you could do to get your data and
objects more normalized. But without knowing a lot more about your
structure, it would be hard to advise.
Hope that helps.