Printing a form

Mal Ba

New member
Local time
Today, 17:54
Joined
Mar 6, 2021
Messages
22
Trying to do this with a slightly better control over what is printed than using DoCmd.PrintOut.

So was attempting to use:
DoCmd.RunCommand acCmdPrintPreview

This fails with the run-tie error 3270: Property not found.

Why would that be?

Mal
 
you need to Select the Object first

docmd.SelectObject acReport,"ReportName",True

before you can run that command
 
Trying to do this with a slightly better control over what is printed than using DoCmd.PrintOut.

So was attempting to use:
DoCmd.RunCommand acCmdPrintPreview

This fails with the run-tie error 3270: Property not found.

Why would that be?

Mal
Hi Mal

You should not be printing Forms.

It is always best to produce a Report for the data required.
 

Users who are viewing this thread

Back
Top Bottom