Hi,
I have a filtered form that produces a set of employee names that are hyperlinks. When clicked, the EmployeeName hyperlink opens another form called Budgeted Time. I would like to filter the results of Budgeted Time to match the employee name and corresponding date range produced from the filters on the first form. The date fields are called txtstartdate and txtenddate. Many thanks for looking
I have a filtered form that produces a set of employee names that are hyperlinks. When clicked, the EmployeeName hyperlink opens another form called Budgeted Time. I would like to filter the results of Budgeted Time to match the employee name and corresponding date range produced from the filters on the first form. The date fields are called txtstartdate and txtenddate. Many thanks for looking
Code:
Private Sub EmployeeName_Click() Dim stlinkcriteria As String stlinkcriteria = "[budgetdate] is between #" & [txtStartDate] & "# And #" & [txtEndDate] & "#" And "[EmployeeName] = '" & EmployeeName & "'" DoCmd.OpenForm "Budgeted Time", , , stlinkcriteria End Sub
Comment