Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendkey action

Status
Not open for further replies.

Jackie

MIS
Feb 9, 2000
148
US
What is the Sendkey syntax (using a macro) for calling the Windows Print Dialog?

I would like to call the Windows PRint Dialog via a command button.

I created a macro and designated the "SendKey" action.

I referenced Access Help for the syntax but when I select the command button the print dialog is not displayed.

I have entered a variety of syntax combinations to no avail.

I set keystrokes to: ^{P} and set the Wait field to No.

I also tried directly entering the Sendkey statment via the command button event property.

Thank you in advance.
 
In the OnClick event procedure of the button, try this:
DoCmd.RunCommand acCmdPrint

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top