Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using SPT with date criteria
Message
From
27/09/2005 11:28:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
27/09/2005 11:24:03
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01053462
Message ID:
01053467
Views:
17
This message has been marked as the solution to the initial question of the thread.
>I am trying to use SPT to get a result set based on greater than a date.
>
>The remote table is an AS400 file which stores a date(vacsdate) as 2005-12-01.
>
>I want my SPT select statement to use Where vacsdate > myDate. a SPT select on the entire file displays the date in a normal format, so I know VFP can interpret the AS400 date.

m.CheckDate = date()
SQLExec(m.lnHandle,"select * from myTable where vacsdate > ?m.CheckDate","myResult")

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