Hi, I have a continuous form. In the header I have two unbound txtboxes.
StartDate and EndDate.
In my data I have a field called DueDate
What I am trying to do is if there is a value in StartDate and EndDate filter DueDate between those values.
The code I have does not work.. Can anyone help?
Private Sub Command36_Click()
Me.Filter = "[DueDate]= Between [Forms]![frm_Payment_Manager]![StartDate] AND [Forms]![frm_Payment_Manager]![EndDate]"
Me.FilterOn = True
Me.Filter = ""
Me.FilterOn = False
End Sub
Thanks.
StartDate and EndDate.
In my data I have a field called DueDate
What I am trying to do is if there is a value in StartDate and EndDate filter DueDate between those values.
The code I have does not work.. Can anyone help?
Private Sub Command36_Click()
Me.Filter = "[DueDate]= Between [Forms]![frm_Payment_Manager]![StartDate] AND [Forms]![frm_Payment_Manager]![EndDate]"
Me.FilterOn = True
Me.Filter = ""
Me.FilterOn = False
End Sub
Thanks.