I am using this code to print a record from the form
Private Sub btnPrintRecord_Click()
On Error GoTo Err_btnPrintRecord_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.PrintOut acSelection
Exit_btnPrintRecord_Click:
Exit Sub
Err_btnPrintRecord_Click:
MsgBox Err.Description
Resume Exit_btnPrintRecord_Click
End Sub
But, this code is not popping up print window to select the printer, it is automatically sending to default printer.
Can anyone help to pop up print window to select printer from that.
DoMenuItem has been deprecated since at least Access 2000. You can use RunCommand to open the print window.
It is almost never a good idea to print a record. It does not take long to build a report which can be used with a Where argument. This will give you much more control and give your users a much more pleasant experience.