Create Macro to print current record in form only

J

Janet

Without using the button wizard, does anyone know the
steps for creating a Macro to print current record in form
only?

I have:
1. OpenForm
2. PrintOut

It prints ALL the records, not just the one it's on.

Thanks!
 
S

Steve Schapel

Janet,

Whereas it is technically possible to print a form, this is not the
primary purpose of forms, and the functionality is therefore limited. I
suggest you make a Report to print out the data you want. Then you can
use an OpenReport action in your macro to print the report, and in the
Where Condition argument of the macro, refer to the primary key field of
the form's current record, using syntax such as...
[YourID]=[Forms]![YourForm]![YourID]
 
J

Janet

Thanks. That will solve my problem!

Janet
-----Original Message-----
Janet,

Whereas it is technically possible to print a form, this is not the
primary purpose of forms, and the functionality is therefore limited. I
suggest you make a Report to print out the data you want. Then you can
use an OpenReport action in your macro to print the report, and in the
Where Condition argument of the macro, refer to the primary key field of
the form's current record, using syntax such as...
[YourID]=[Forms]![YourForm]![YourID]

--
Steve Schapel, Microsoft Access MVP

Without using the button wizard, does anyone know the
steps for creating a Macro to print current record in form
only?

I have:
1. OpenForm
2. PrintOut

It prints ALL the records, not just the one it's on.

Thanks!
.
 

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

Top