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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter Not working

Status
Not open for further replies.

Sadukar

Technical User
Feb 19, 2003
159
IE
Can someone tell why this is not working?

On a form I have a subform, 2 text boxes and a button.
One of the fields in the subform is a date field. I want to filter between 2 dates. this is the code I used for the button.

Me.subform.Form.Filter = "[Date] between #" & Text36 & "# and #" & Text40 & "#"
Me.subform.Form.FilterOn = True

This code causes the subform to show no data.

What am I doing Wrong?

Thanks
S
 
You could put the date filter criteria in the form's header instead of using a form/subform setup.
 
no
I want form/subform set-up

thanks for suggestion
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top