I have a report embedded in a form containing a text box and a button.
My desire is to update the filter on the report and requery and refresh the report within the form. I am not very familiar with using VBA within access, so I may very well be completely off-base with how I'm attempting to do this.
The event that fires when the generateExhib button is clicked is below.
The report that is embedded as subform/subreport is named TagReport.
Private Sub GenerateExhib_Click()
If (generatePrintedExhib.Value = False) Then
Me.TagReport.Application.DoCmd.SetFilter WhereCondition:="[Exhibitor ID] =" + ExhibitorNumber.Value + " AND [UDEntry-CheckBox1] = false"
Else
Me.TagReport.Application.DoCmd.SetFilter WhereCondition:="[Exhibitor ID] =" + ExhibitorNumber.Value
End If
Me.TagReport.Report.Application.DoCmd.Requery
Me.TagReport.Report.Application.DoCmd.RefreshRecord
End Sub
Me.TagReport.Report.Application.DoCmd.Requeryinstead of justMe.TagReport.Requery? - Aiken