Print one-page of report
- From: "zSplash" <zSplash@xxxxxxxxxxxxxxxx>
- Date: Wed, 21 Feb 2007 13:36:50 -0900
I have a form/report that I use for input. I want my code to print only the
current page of the form/report. I have a commandlButton (cmbPrintRecord)
with the following code on the click_event:
Private Sub cmdPrintRecord_Click()
Dim strDocName As String, strWhere As String
strDocName = "rMain"
strWhere = "[pk_ID] = " & Me.[pk_ID]
DoCmd.OpenReport strDocName, acViewNormal, , strWhere
End Sub
The pk_ID is the primary key, a number. My code prints all the pages of the
form. What's wrong with my code?
TIA
.
- Prev by Date: Too many bugs in A2002's TabControl... :-(
- Next by Date: Re: Need a macro to open a certain record from a form
- Previous by thread: Too many bugs in A2002's TabControl... :-(
- Next by thread: Displaying a two column combo box and showing value from column 1 but saving clolumn 2 data.
- Index(es):