Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date ranges
Message
From
17/12/1998 03:54:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/12/1998 18:59:50
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00168328
Message ID:
00168384
Views:
28
>I need to print a report using querying two fields in a table. One of the two fields is a date field. In FoxPro 6.0 the following will work for one date
>
>for tablename.fieldname = {^1998/01/01};
>
>but how do you query for a range between 01/01/1998 and 12/31/1998.
>
>Thank You in advance.
Anywhere that you could use a VFP function :
1) between(tablename.fieldname, {^1998/01/01}, {^1998/12/31})
2) year(tablename.fieldname) = 1998
SQL :
tablename.fieldname between {^1998/01/01} and {^1998/12/31}
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