Access 97 Reports select records to print

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to be able to set a parameter value. How? Have gone to the help menu
and no instruction on how to create the value. Printing labels and only need
certain records at times to print.

Help! ASAP!
 
I assume you're speaking of a parameter in a query. Easiest way to do this
is to put prompting text inside [ ] characters, and use that as the
criterion expression for the field that is to be filtered:

[Enter the Customer ID:]
 
I need to be able to set a parameter value. How? Have gone to the help menu
and no instruction on how to create the value. Printing labels and only need
certain records at times to print.

Help! ASAP!


Do you mean you wish to select several labels at a time to print?
If so, add a Yes/No check box field to the table.
Then add the field to your form.

Make sure the report record source includes the new field.
If it is the table, it will be included. If it is a Query or SQL add
the check box field to the query.

Place a check mark in the records for which you wish to print a label.

Then add a command button to the form.
Code it's Click event:
DoCmd.OpenReport "LabelReport", acViewPreview, , "[CheckField] = -1"

Only records that have been checked will be printed.

To clear all the check boxes at once, use an Update query:

Update YourTable Set YourTable.CheckField = 0;

Run the query when you finish running the report to reset the check
boxes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top