Access 2010 - I have a search form where end users enter parameters. I used the command wizard and created a preview report command button so the report tab comes up in preview mode just fine. I also created a Clear Entry command button that works. However if I leave the report open in preview mode and go back to the form tab, hit the Clear Entry button, then enter new parameters, the report data doesn't change from the previous entry. My questions are:
1. Will the end user have to close the report manually each time before entering new parameters?
2. If not, where is the Close Report command button? I could only find Close Form.
3. What's the code to create a command button to refresh the report?
4. Finally, can everything (preview report, clear entry, refresh data) be done using just 1 command button? Can't I add all the code I need behind one command?
Here's the code such as it is that I have in there now:
Private Sub cmdClear_Click()
Me.GroupName = Null
Me.firstName = Null
Me.lastName = Null
Me.EmailAddress = Null
End Sub
Private Sub cmdCloseReport_Click()
DoCmd.Close
End Sub
1. Will the end user have to close the report manually each time before entering new parameters?
2. If not, where is the Close Report command button? I could only find Close Form.
3. What's the code to create a command button to refresh the report?
4. Finally, can everything (preview report, clear entry, refresh data) be done using just 1 command button? Can't I add all the code I need behind one command?
Here's the code such as it is that I have in there now:
Private Sub cmdClear_Click()
Me.GroupName = Null
Me.firstName = Null
Me.lastName = Null
Me.EmailAddress = Null
End Sub
Private Sub cmdCloseReport_Click()
DoCmd.Close
End Sub