VB 6.0, Crystal Reports, getting date/time from Oracle 8.0 
Author Message
 VB 6.0, Crystal Reports, getting date/time from Oracle 8.0

This may be an Oracle question, but I am using Visual Basic 6.0 Ent. Ed.
with Crystal Report 6.0. I am building a query to retrive records from
Oracle using a date/time stamp.

tStr = "{FINISH} >= DateTime(" & gFromYear & "," & gFromMonth & "," &
gFromDay

tStr = tStr & "," & gFromHours & "," & gFromMinutes & "," & gFromSeconds
& ")  AND {FINISH} <= DateTime(" & gToYear & "," & gToMonth & ","

tStr = tStr & gToDay & "," & gToHours & "," & gToMinutes & "," &
gToSeconds & ")"

ImpactCRW.CrystalReport1.SelectionFormula = tStr

If I run the query using a from time of 00:00:00, I get everything. If I
use a time of 08:00:00 for example, I do not get any information. I am
not using ODBC to retrieve this information. If I run Oracle ODBC test,
the date/time does show up, but if I use Oracle's SQL Plus the time does
not.

Is there a control for Crystal Reports, or a Visual Basic method, that I
can use to get the correct time from the database?

Thanks.
--

======================
Travis Powell



Sat, 02 Jun 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How to display crystal report 8.0 file in HTML format in VB 6.0

2. MSJetDB35.dll error with VB 6.0 SP3 and Crystal Reports 8.0

3. VB6.0, Crystal Reports, date/time from Oracle

4. Oracle - Crystal Reports - VB 6.0

5. crystal 8.0 .ocx & crystal 6.0 .rpt

6. Crystal Reports, Date/Time, and the Time() function

7. CRYSTAL REPORT, run time query report by date

8. VB 6.0 reports vs. Crystal 6.0

9. VB 6.0 and Crystal Reports 6.0

10. VB 6.0 reports vs. Crystal 6.0

11. Using CRW 4.6 /VB 5.0 to report Oracle 8.0 object table data

12. Not getting all expected records due to date-time issue in the Oracle database

 

 
Powered by phpBB® Forum Software