Hi All,
Basically when i hit a button, i want to be able to open a report, and only print the first page.
Is this possable?
Regards,
Lyndon
Hi All,
Basically when i hit a button, i want to be able to open a report, and only print the first page.
Is this possable?
Regards,
Lyndon
Theres a button command that lets you print current form. This will have to do for now.
Reports are for printing not forms - Just my little piece of advice.
But this behind a command button.
This is from VB help on PrintOut Method.Code:Private Sub cmdPrint_Click() DoCmd.OpenReport "Name of Report", acViewPreview DoCmd.PrintOut acPages, 1, 1 DoCmd.Close acReport, "Name of Report" End Sub
ansentry - You are a life saver, Thanks so much, this works like a charm.
Reports are for printing not forms - Just my little piece of advice.
But this behind a command button.
This is from VB help on PrintOut Method.Code:Private Sub cmdPrint_Click() DoCmd.OpenReport "Name of Report", acViewPreview DoCmd.PrintOut acPages, 1, 1 DoCmd.Close acReport, "Name of Report" End Sub
Lyndon,
Glad to help.