A
Alain
I have another problem with my form.
On it, I have a command button to "print preview" a report. I would like this report to use only the current information on the active form.
Currently, it will show all the records, starting with the first one on the list. Here is the code behind that button:
Private Sub PreviewReport_Click()
On Error GoTo Err_PreviewReport_Click
Dim stDocName As String
stDocName = "All Tenants Info Sorted by Unit No"
DoCmd.OpenReport stDocName, acPreview
Exit_PreviewReport_Click:
Exit Sub
Err_PreviewReport_Click:
MsgBox Err.Description
Resume Exit_PreviewReport_Click
End Sub
The name of the report (as shown above) is "All Tenants Info Sorted by Unit No"
What command should be added to show (or print) the current active record that is shown on my form.
Thank you for helping a beginner,
Alain
On it, I have a command button to "print preview" a report. I would like this report to use only the current information on the active form.
Currently, it will show all the records, starting with the first one on the list. Here is the code behind that button:
Private Sub PreviewReport_Click()
On Error GoTo Err_PreviewReport_Click
Dim stDocName As String
stDocName = "All Tenants Info Sorted by Unit No"
DoCmd.OpenReport stDocName, acPreview
Exit_PreviewReport_Click:
Exit Sub
Err_PreviewReport_Click:
MsgBox Err.Description
Resume Exit_PreviewReport_Click
End Sub
The name of the report (as shown above) is "All Tenants Info Sorted by Unit No"
What command should be added to show (or print) the current active record that is shown on my form.
Thank you for helping a beginner,
Alain