C
Céline Brien
Hi,
By clicking on a button in a form, I preview a report.
I would like to obtain the printing of the first page of the report.
The codes to preview are below.
Many thanks,
Céline
Using Access 97
------------------------------------------------
Private Sub ImprimerEPlaintes_Click()
On Error GoTo Err_ImprimerEPlaintes_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "EPlaintes"
stLinkCriteria = "[NoMembre]=" & Me![NoMembre]
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
Exit_ImprimerEPlaintes_Click:
Exit Sub
Err_ImprimerEPlaintes_Click:
MsgBox Err.Description
Resume Exit_ImprimerEPlaintes_Click
End Sub
By clicking on a button in a form, I preview a report.
I would like to obtain the printing of the first page of the report.
The codes to preview are below.
Many thanks,
Céline
Using Access 97
------------------------------------------------
Private Sub ImprimerEPlaintes_Click()
On Error GoTo Err_ImprimerEPlaintes_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "EPlaintes"
stLinkCriteria = "[NoMembre]=" & Me![NoMembre]
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
Exit_ImprimerEPlaintes_Click:
Exit Sub
Err_ImprimerEPlaintes_Click:
MsgBox Err.Description
Resume Exit_ImprimerEPlaintes_Click
End Sub