Many thanks for your help.
I did try that but did not work for some reason. I have been struggling with this for a week and then I tried the following code and it worked perfect.
'Turn Filter off
[Form_Record Activity].Rec_Act_Subfor m.Form.FilterOn = False
'Assign Combo box value to variable
Date = [Form_Record Activity].Week_Ending
'Set Form Filter to value of Combo Box variable
...
User Profile
Collapse
-
Combobox to filter table using a date
I have created a form with a combo box to filter a subform using a date.
The filter works great but not with dates starting with a 0 e.g 01/07/2006
I have set the format to short date for the combo box, the table that feeds the combo box and the subform to be filtered.
I have also set the format in the code see below.
Private Sub Week_Ending_Aft erUpdate()
[Form_Record Activity].Data_Subform.F orm.FilterOn...
No activity results to display
Show More
Leave a comment: