Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Oracle Question in Remote View Dates
Message
From
06/01/2003 11:23:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00738372
Message ID:
00738385
Views:
15
>I have to set up a remote view with a parameterized datetime field...
>
>Question 1 - After selecting the paydate (datetime) field in the selection criteria and selecting equals.... what do I type in for the EXAMPLE... I can't seem to get this right without getting an error (column not found - or else incorrect month).
>
>Question 2 - For a datetime range (between a lower date and an ending date), what would the example be?
>
>Thanks for the help....
>
>Tommy

Tommy,
I don't use Oracle but it should be same as in SQL server :
*1)
SQLExec(handle,"select * from myTable"+;
 " where myDate = ?thisform.txtPayDate.Value",'Result')

*2)
SQLExec(handle,"select * from myTable"+;
 " where myDate between "+;
 "?thisform.txtStartDate.Value and ?thisform.txtEndDate.Value", 'Result')
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
Next
Reply
Map
View

Click here to load this message in the networking platform