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 by date

Status
Not open for further replies.

Sadukar

Technical User
Feb 19, 2003
159
IE
Hi all,

I want to filter a subform by a date. Can someone give me a few pointers.

What I want is to filter a date in the format 01/08/03 by the month being 08.

Me.subform.Form.Filter = "[Date] = '##/08/##'"
Me.subform.Form.FilterOn = True

Any sugestions?

thanks
s.
 
First, rename your date field to something other than "Date". You should not use field names that are the same as Access functions. Something like this should work:

Code:
Me!subform.Form.Filter = "Format([dtDate], 'm') = '8'"
Me!subform.Form.FilterOn = True

Ken S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top