Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Oracle Question in Remote View Dates
Message
From
06/01/2003 11:36:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00738372
Message ID:
00738390
Views:
21
This message has been marked as the solution to the initial question of the thread.
Oh if you do that way then backend expects to get in ODBC canonical format :

transform(ttoc(dtot(ldDate),1),'@R 9999/99/99 99:99:99')

You might try shorter form :
transform(dtoc(ldDate,1),'@R 9999/99/99')

Cetin

>I'll give this a try... I was using the Remote View Wizard and trying to use some static values to get a feel for the syntax that Oracle wants....
>
>I was using stuff like '01/01/2001' ... ^2002-01-01 ... and the like but nothing would work....
>
>>>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