Using A2007. I am trying to print only page 1 of a form using code that allows the user to select one of several printers.
The code I tried is a variation of what I used in the other system computers that use the default printer:
Me.FilterOn = True
Me.Filter = "idquote=" & Me.idQuote & ""
DoCmd.RunCommand acCmdSelectRecord '
DoCmd.PrintOut acPages, 1, 1 '
I replaced the PrintOut command with SendKeys ("^p") '
Me.Filter = "idob=" & Me.IDob & ""
With SendKeys command, the user gets to select the printer but the printout doesn’t limit itself to page 1, so extra non-needed pages are printed.. Is there some way to limit the printout to the first page only and still be able to choose a non-default printer?
Any help much appreciated.