chrisl,
Regarding > > >Thanks, but reports print all records and I only want to
print one record -- say ine invoice on a page, not all
the invoices in the database. <<<
The above statement is absolutely not true.
Hugh gave you the correct advice.
Make a report that will print the invoices.
If your Invoice table is normalized and has a unique Prime Key field that
identifies each record, then...
On the form that shows all the records and includes that Prime Key field,
add a command button.
Code the Button's Click event:
(If that Prime Key field is of a Number datatype
DoCmd.OpenReport "InvoiceReport", acViewPreview, , "[RecordID] = " &
[RecordID]
(If the unique Prime Key field is of Text datatype, then use
DoCmd.OpenReport "InvoiceReport", acViewPreview, , "[RecordID] = '" &
[RecordID] & "'"
Change [RecordID] to what ever the actual name is of that Prime Key field.
Only the record displayed on the form will be included in the report.
Look up the OpenReport method in Access Help.
Also look up
Restrict data to a subset of records.