Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date between where condition in select statement
Message
From
21/06/2003 04:15:23
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
20/06/2003 16:54:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00802448
Message ID:
00802558
Views:
18
>Can you please tell me how i can use the below date range condition in the where clause.
>
>i am trying to join the cwhere condition to my existing where statement.
>
>I am getting an error saying operator or operand mismatch type...
>
>*****************************************
>
>clist1 = "06/01/03"
>clist2 = "06/20/03"
>
>cWhere = " AND (docdate" + [ > = ] + clist1 + [ AND ] + " docdate" + [ < = ] + clist2 + ")"
>
>
>*****************************************
>
>
>Thank you very much.

clist1 = '^2003/06/01' && Or was it Jan 6 ?
clist2 = '^2003/06/20'

cWhere = ' and docdate Between ctod(clist1) and ctod(clist2) '

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform