C
ckerns
I want to filter a form based on a date range and the value of a
field. These return empty recordset. Any ideas?
Dim sStart As String
Dim sEnd As String
sStart = "1/1/" & Me.txtYear
sEnd = "12/31/" & Me.txtYear
DoCmd.ApplyFilter , "[DatePaid] between #" & Format(sStart,
"mm/dd/yyyy") & "# And #" & Format(sEnd, "mm/dd/yyyy") & "# And
Client=" & Me.Client
have also tried
DoCmd.ApplyFilter , "[DatePaid] between #" & Format(sStart,
"mm/dd/yyyy") & "# And #" & Format(sEnd, "mm/dd/yyyy") & "# And
Client='" & Me.Client & "'"
field. These return empty recordset. Any ideas?
Dim sStart As String
Dim sEnd As String
sStart = "1/1/" & Me.txtYear
sEnd = "12/31/" & Me.txtYear
DoCmd.ApplyFilter , "[DatePaid] between #" & Format(sStart,
"mm/dd/yyyy") & "# And #" & Format(sEnd, "mm/dd/yyyy") & "# And
Client=" & Me.Client
have also tried
DoCmd.ApplyFilter , "[DatePaid] between #" & Format(sStart,
"mm/dd/yyyy") & "# And #" & Format(sEnd, "mm/dd/yyyy") & "# And
Client='" & Me.Client & "'"