i have a form that filters results based on an entry in an unbound text box, i then have a button that creates a report from those filtered results, using this code
is there a way to put a heading on the report by entering it into an unbound text box in the form. so if im making an attendance report, i would like to enter 'attendance' in an unbound text box after i do my filter and then create my report and 'attendance' would be on the top of the report... thanks!
Code:
Private Sub Command8_Click() If Me.Filter = "" Then MsgBox "Apply a filter to the form first." Else DoCmd.OpenReport "Id", acViewPreview, , Me.Filter End If
Comment