Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter using a textbox date value on form 1

Status
Not open for further replies.

Moss100

Technical User
Aug 10, 2004
586
GB

Hello I am struggling with some code to get my form filer working.

Bacically I have a continuous form and I am filtering the records on an after upadte event. All is working OK with the code below:

Code:
Me.Form.Filter = "[Cand_Joint_Name_Long] LIKE '*" & Me.txt_Find_Name & "*'"
Me.Form.FilterOn = True

I would like to modify this filter so it only displays records which have an added date on or equal to the value in a textbox on the form called: txt_Filter_Date_Added

Help much appreciated.

Regards

Mark
















Me.Form.Filter = "[Cand_Joint_Name_Long] LIKE '*" & Me.txt_Find_Name & "*'
 
Did you try:

Code:
Me.Form.Filter = "[Cand_Joint_Name_Long] LIKE '*" & Me.txt_Find_Name & "*'[highlight #FCE94F] AND DateField = #" & txt_Filter_Date_Added & "#"[/highlight]
Me.Form.FilterOn = True


---- Andy

There is a great need for a sarcasm font.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top