Re: Aggregates on DateTime fields
From: Dave Blake (barnswood_at_hotmail.com)
Date: 08/09/04
- Next message: Dave Blake: "Re: Access Compact"
- Previous message: Ryan L. Schoolman: "Access Compact"
- In reply to: Brian Bushay TeamB: "Re: Aggregates on DateTime fields"
- Next in thread: Brian Bushay TeamB: "Re: Aggregates on DateTime fields"
- Reply: Brian Bushay TeamB: "Re: Aggregates on DateTime fields"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 9 Aug 2004 06:59:29 +0100
>
> You don't say what database you are using?
> I don't have any problem with a query like this that uses MS SQL server
>
Actually I did - Access, i.e. Jet 4.0 OLEDB data provider.
The query works in Access itself, and works if I have a data aware control
linked to the dataset. However if I just open such a query in code to get
the result from the dataset (no linked controls) then the associated Tfield
is non-null, of type dtDatetime but unuseable - asdatetime, asstring or
assigning a TDatetime variable to the value all cause "Invalid floating
point operation" errors. Link a data aware control and it all goes away.
So what is the datalink doing to translate the value? On google someone says
that you can't use aggregates in datetime fields, but there is nothing in
the MS documentation for Jet and it works for data aware controls. All very
odd.
Dave
- Next message: Dave Blake: "Re: Access Compact"
- Previous message: Ryan L. Schoolman: "Access Compact"
- In reply to: Brian Bushay TeamB: "Re: Aggregates on DateTime fields"
- Next in thread: Brian Bushay TeamB: "Re: Aggregates on DateTime fields"
- Reply: Brian Bushay TeamB: "Re: Aggregates on DateTime fields"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|