View Single Post
  #2  
Old November 15th, 2004, 03:37 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

To create a copy of the report for each department:
1. Create a table with these fields:
DepartmentID Number primary key.
DepartmentName Text
Save it with the name tblDepartment.

2. Enter 5 records into the table for your departments.

3. Open in design view the query that feeds data to your report. Add
tblDepartment. If you see any lines between this table and other tables,
delete the lines. It is the *lack* of any join that causes the query to
repeat the records for all the departments. Drag the 2 fields from the new
table into the output grid. Save the query.

4. Open your report in design view. Open the Sorting'n'Grouping dialog (View
menu), and insert DepartmentID into the first row of the dialog (above any
other entries). Add a group header if you wish to display the department
name above each copy of the report.

5. Use conditional formatting to modify the size/boldness of the things you
chose, depending on the value of DepartmentID.

For instructions on how to only print the record in the form, see:
Print the record in the form
at:
http://members.iinet.net.au/~allenbrowne/casu-15.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Brian K. Sheperd" wrote in message
...
Hello,
I am trying to replace our debit memo form with access 2000. I have 2
tables (1 -- cust and other info, 2 -- items being returned -- 1 to many
rel). I have the form and report done. The report is generated by a
query.
At the bottom of the report is a page designation (i.e., 1 page goes via
mail, 1 page goes to accounting, 1 page goes to warehouse, etc). These
are
in 5 text boxes on the bottom of the report. I want to be able to click
on
a print button on the form, and print 5 copies; however, for each copy, I
want to be able to change the font height and boldness for the different
areas (i.e., mail, accounting, warehouse, etc.) so that the user knows
which
copy goes to which department. I put a print button on the form, and I
could add a loop, such as for next, to print 5 copies, but I don't know
how
to modify the report for the different dept designations. Is this
possible?

Also, my query has "[Debit Memo No]" in the criteria. How can I make it
only select the current information displayed on the form instead of an
input box asking me to key in the debit memo number (autonumber).

Thanks,
Brian