kengooch
Member
- Local time
- Today, 15:18
- Joined
- Feb 29, 2012
- Messages
- 137
I have a button on a form that allows users to create custom reports through the use of multi-select list boxes. Then there are several reporting option buttons on the form. The following code will open the report with the filtered records.
I was trying to give the user an option to create a custom report name. I added an unbound text box to the report and named it vRepTitle then added an inputbox request to prompt the user for the report name and assigned that value to vRptTitle, then I tried to pass that title to the unbound text box but it doesn't work. Here is the modified code I tried that doesn't work.
Would appreciate corrections
Private Sub Command202_Click()
'This Code Handles the Report based upon the Filter selections
DoCmd.OpenReport "rStfCmpltChkLst", acViewReport, , vSetFilters
End Sub
I was trying to give the user an option to create a custom report name. I added an unbound text box to the report and named it vRepTitle then added an inputbox request to prompt the user for the report name and assigned that value to vRptTitle, then I tried to pass that title to the unbound text box but it doesn't work. Here is the modified code I tried that doesn't work.
Private Sub Command202_Click()
'This Code Handles the Report based upon the Filter selections
vRptTitle = InputBox("Enter the Report Name", "Get Custom Report Name", "Default Custom Report Name")
DoCmd.OpenReport "rStfCmpltChkLst", acViewReport, , vSetFilters, vRepTitle = Me.vRptTitle
End Sub
Would appreciate corrections