Evan Cutler
asked on
Breaking Date Field by 3 textfields for "filter by form"
I have a form in Access, where I do "Filter By Form".
No issues there...but I'm being asked to enhance it.
One of the fields is a date field. To search a "Month", I put in
Between #1/1/2011# and #1/31/2011#
To get January 2011.
Can I split the date field textboxes up to 3 fields, and still keep control with a single date filed, while searching by the 3 fields? This way, if I do a "Filter by Form" I can use a textbox or combo box on it?
thanks.
No issues there...but I'm being asked to enhance it.
One of the fields is a date field. To search a "Month", I put in
Between #1/1/2011# and #1/31/2011#
To get January 2011.
Can I split the date field textboxes up to 3 fields, and still keep control with a single date filed, while searching by the 3 fields? This way, if I do a "Filter by Form" I can use a textbox or combo box on it?
thanks.
ASKER
Another thought is to repeat the field three times, then just filter out the value partial I want for each one.
Can I do that?
Can I do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is a good solution...I will work towards my goal with this solution.
My issue is that if I adjust the DatePart, the date field does not get updated....
but it's a good start. :)
Thanks.
My issue is that if I adjust the DatePart, the date field does not get updated....
but it's a good start. :)
Thanks.
Then, create a combo box with the txt_formal_name column visible, and everything else.
Then, when the user selects a value, pass along the dt_start and dt_end columns in your 'Between' expression.