Access 7.0 Date/Time Fields not accessible using CR 4.6 
Author Message
 Access 7.0 Date/Time Fields not accessible using CR 4.6

I am using CR 4.6 as supplied with VB5 Enterprise and looking at an Access
7.0 database.

In a table I have a date/time field from which I wish to extract the date,
the time and the year.

The only thing I can get is the date on it's own not even the whole
date/time field, even though I have switched off the Convert Date/Time to
date option and run verify database.

The Seagate site implied I could do one of two things in a formula either:-
{table.date}[12 to 22] which gives me an error " A string or array is
required here"
or
DTSTToTimeString({table.date}) which gives me an error "The remaining text
does not appear to be part of the formula"

Any ideas as this is surely a basic function (no pun intended) and I found
it hard to believe they have shipped a version which cannot handle date.time
fields.

Thanks for any ideas



Sat, 26 Aug 2000 03:00:00 GMT  
 Access 7.0 Date/Time Fields not accessible using CR 4.6

I have the same problem with an oracle database. If you find any solutions
let me know!



Quote:
> I am using CR 4.6 as supplied with VB5 Enterprise and looking at an
Access
> 7.0 database.

> In a table I have a date/time field from which I wish to extract the
date,
> the time and the year.

> The only thing I can get is the date on it's own not even the whole
> date/time field, even though I have switched off the Convert Date/Time to
> date option and run verify database.

> The Seagate site implied I could do one of two things in a formula
either:-
> {table.date}[12 to 22] which gives me an error " A string or array is
> required here"
> or
> DTSTToTimeString({table.date}) which gives me an error "The remaining
text
> does not appear to be part of the formula"

> Any ideas as this is surely a basic function (no pun intended) and I
found
> it hard to believe they have shipped a version which cannot handle
date.time
> fields.

> Thanks for any ideas



Mon, 28 Aug 2000 03:00:00 GMT  
 Access 7.0 Date/Time Fields not accessible using CR 4.6

Interesting little problem found the fix myself accidentally.

It appears that if you start a report with the option "Convert date/time to
date" set then even if you turn it off there is no apparent way to get it to
take effect.

If you start a new report again having turned it off no problem. It comes in
as a string so you then create formulas useing:-
{table.date}[1 to 10] to get the date
{table.date}[12 to 22]  to get the time

Good Luck


Quote:
>I have the same problem with an oracle database. If you find any solutions
>let me know!



Tue, 29 Aug 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. CR 4.6 VB5.0 Access 7.0 Secured Database

2. ADO with Access Date/Time field not storing the time, just the date

3. Crystal 4.6 and Date/Time fields

4. bound masked field to date/time field in access not formatting right

5. CR Ver 4.6: Trouble displaying the date

6. Date manipulation in CR 4.6

7. Cr 4.6 not working

8. Using the CR 4.6 that comes with VB 5

9. VB 6.0, Access 97, CR 4.6

10. VB 6.0, Access 97, CR 4.6

11. VB 6.0, Access 97, CR 4.6

12. Crystal 4.6 Bundled date/time question

 

 
Powered by phpBB® Forum Software