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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use a / within a filter for a datefield ????

Status
Not open for further replies.

punchplus

IS-IT--Management
Feb 11, 2004
2
CA
When I try and filter on a date field with a dateseparator of / I get an error message : Arithmetic in filter expressions not supported.

If I change the dateseparator to a - then everything works ok !?!?!?!

Help ...
 
As you haven't supplied the actual filter you are using I can only guess at the answer.

I suspect that you are not putting quote marks around the date so if you have something like

datum > 07/26/2004

it is trying to divide 7 by 26 and then by 2004 which will appear to be an Arithmetic expression.

You should have something like

datum > '07/26/2004'

However, if your DateSeparator is defined as -
then you need to do something like

datum > '07-26-2004'

Andrew
Hampshire, UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top