-1

Im using Access as database:

I have table named FS and a date field named DateTime which contains records as mm/dd/yyyy

How do I filter the DateTime field by month only.

Sir Rufo
  • 18,395
  • 2
  • 39
  • 73
Sardukar
  • 247
  • 6
  • 16

1 Answers1

0

Figure it out:

  1. In the Access database changed the field DateTime to string.

  2. In Delphi applied filter like:

    FStable.Filter := 'DateTime LIKE '+ QuotedStr('comboBox1.Text'+'%');

For some reason Filter does not work on datetime fields.

That was my problem.

Community
  • 1
  • 1
Sardukar
  • 247
  • 6
  • 16