T
Tony Williams
I have a list box which when I double click should filter records within a
date range entered into 2 unbound text boxes. My code is
Private Sub List3_DblClick(Cancel As Integer)
Dim strWhere As String
Dim strField As String
strField = "[tbldocument].[txtExpirydate]"
strWhere = strField & " Between #" & (Me.txtstartdate) & "# AND #" &
(Me.txtenddate) & "#"
DoCmd.OpenForm "frmMdi", , , strWhere
End Sub
However it doesn't work. Can someone help me with what's missing?
Thanks
Tony
date range entered into 2 unbound text boxes. My code is
Private Sub List3_DblClick(Cancel As Integer)
Dim strWhere As String
Dim strField As String
strField = "[tbldocument].[txtExpirydate]"
strWhere = strField & " Between #" & (Me.txtstartdate) & "# AND #" &
(Me.txtenddate) & "#"
DoCmd.OpenForm "frmMdi", , , strWhere
End Sub
However it doesn't work. Can someone help me with what's missing?
Thanks
Tony