Link to home
Start Free TrialLog in
Avatar of gleads
gleadsFlag for United Kingdom of Great Britain and Northern Ireland

asked on

ADO QUERIES SQL

I am trying to quote dates in the sql of a query, and am wanting to say where mvtdate BETWEEN :DateTo AND :DateFrom

It doesn't like this.  I have tried <= and >= but it still doesn't work.  Any ideas?
Avatar of kretzschmar
kretzschmar
Flag of Germany image

>where mvtdate BETWEEN :DateTo AND :DateFrom

should work (if it is supported by your database)

can you show, how you do supply the paramaters

meikl ;-)
Avatar of gleads

ASKER

What fromat should dates be in in order for the query to work.  At the moment, it returns no rows, so I am thinking that with a date e.g. 21/02/2003, it is dividing 21 by 2 by 2003 and therefore not returning any records.
ASKER CERTIFIED SOLUTION
Avatar of grolschisgood
grolschisgood

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gleads

ASKER

Already solved it a while ago but  I will give you the points anyway as I don't know how to remove a question