Re: Wrong time to datetime conversion using ODBC - who am I to blame?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Kaj Julius" <no.spam.julius@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:u7GxYIZ%23IHA.5040@xxxxxxxxxxxxxxxxxxxxxxx


If I enter a time value in a datetime field in a table, fx. 10:40 it
usually shows as 10:40:00 (default format)


Obviously the driver you are using is not bringing in the date correctly. I
would contact the people who made driver... (the db2 people).

When I then change the format option to Short Date it shows 30-12-1899. So
I guess my Danish version of Access 2003 uses December 30, 1899 as a
starting point. As I read your comment I would have expected it to show
November 30, 1899 - which would then be consistent with the input from the
DB2 time field.


Try displaying the date field a as a double type field data field, what do
you get? In the debug window, go:

debug.Print CDBL(dlookup("MYDate","tblInvoices","id = 6"))

It sounds like your driver is taking the data in wrong (on the other hand,
perhaps the field on the system is formatted as some type of date+time on
the db2 system, but you don't know??

Simply test your values as per above by dispalying the date/time field as a
double. It should shed light on this.

Also, what did the db2 folks say on this matter?


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@xxxxxxx


.



Relevant Pages

  • Re: disable 64-bit dma for one PCI slot only?
    ... gwollman) for PCI 1.0 (at a time when their was no standard for PCI to ... PCI brigdes, yet;-)), the current format seemed sensible, but the ... selection of a driver. ... CAPs and/or decoded vendor and device information. ...
    (freebsd-stable)
  • Re: Accessing DB2 with Java?
    ... We use DB2 a lot, however, we have not tried to access it from the HP 3000. ... I would research if the type 4 driver requires a newer JVM ... Subject: Accessing DB2 with Java? ... connect to the JDBC listener on the IBM, ...
    (comp.sys.hp.mpe)
  • Re: [linux-dvb] [PATCH] Userspace tuner
    ... We keep format conversion ... code duplication in userspace since there's no library available at the ... it is convenient for apps to be able to use standard libraries ... access to it should be part of its driver. ...
    (Linux-Kernel)
  • Re: DBI:ibm_db connection for IBM DB2 database
    ... I had chosen these because in my DB2 server v9.5 installation, ... the existence of an ibm_db adapter. ... the ibm_db driver, contained in the gem too, to work. ... difference is between a database adapter for ruby and a database driver ...
    (comp.lang.ruby)
  • Re: WDF for Storage CLASS device
    ... You can format it on your own using WdfRequestWdmFormatUsingStackLocation. ... stuff and then have my driver custom format the CDBs and SRBs. ... I'm trying to figure out how to get access to the IRP/SRB and CDB so I can ... Can I do that from the WDF Request object? ...
    (microsoft.public.development.device.drivers)