Simplemind
IS-IT--Management
Hi,
i have a form with a related report i have placed a button in the form to open the report. whenever i click the button the report always opens on record 1. however i want the report to open on the record that is currently displayed on the form. the code for the button is as follows
Private Sub cmdPreviewPartOutReport_Click()
Dim stDocName As String
stDocName = "rptPartOutReport"
DoCmd.OpenReport stDocName, acPreview
Any suggestions as to what i have to change in this code would be greatly appreciated, Thanks
i have a form with a related report i have placed a button in the form to open the report. whenever i click the button the report always opens on record 1. however i want the report to open on the record that is currently displayed on the form. the code for the button is as follows
Private Sub cmdPreviewPartOutReport_Click()
Dim stDocName As String
stDocName = "rptPartOutReport"
DoCmd.OpenReport stDocName, acPreview
Any suggestions as to what i have to change in this code would be greatly appreciated, Thanks