Hi
I am trying to set up a date filer. Start is a date field and it is set to short date. Find is a text box and is too set to short date (I use Find.Format = "Short Date"). I want to filter field Start based on the date in text box Find. I tried a few variations but nothing works. These are some examples of codes and the error messages.
But when I use this code: Filter = "Start = Find " and I inset a date to Find then it works.
Thanks for help.
I am trying to set up a date filer. Start is a date field and it is set to short date. Find is a text box and is too set to short date (I use Find.Format = "Short Date"). I want to filter field Start based on the date in text box Find. I tried a few variations but nothing works. These are some examples of codes and the error messages.
Code:
Filter = "Start ='" & Find & "'" - datatype mismatch
Filter = "Start = #" & Find & "#" - run-time error 3000 (reserved error (-3201))
Filter = "Start =" & Find & " "
Filter = "Start =" & Find - syntax error (missing operator) in query expression 'Start = 5. 11. 2010'
But when I use this code: Filter = "Start = Find " and I inset a date to Find then it works.
Thanks for help.