Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Between Statement
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00838116
Message ID:
00838125
Views:
22
>I am trying to create a query whereby the results will be given between 2 dates. My query is below. This does not work! My question would then be Is it possible to use the BETWEEN statement in an SQL?
>
>
>WITH thisform.pageframe1.page3.list3
>	.RowSourcetype = 3
>	.Rowsource = 'SELECT mainkey FROM pdmlog' + ;
>	             ' WHERE pdmlog.type="Change" and pdmlog.database="COST2"' + ;
>	             ' and BETWEEN(pdmlog.date,{^2003-04-01},{^2003-04-02})INTO CURSOR result'
>ENDWITH
>
>
>Many Thanks in Advance

Neil,

Sure. Like this
pdmlog.date BETWEEN '01/04/2003' AND '02/04/2003'
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform