dBase import - null dates problem

  • I have an annoying issue with a dBase 5 import. The data is transformed in a standard manner -

    DTSDestination('x')=DTSSource('x')

    However, null dates in dBase are either true or false (inconsistently so)

    ie ISNULL(DTSDestination('x')) never returns null

    Has anybody come across this issue and resolved it (other than updating null values in the DBase table!)

    thanks

  • Have you tried using the ISDATE() function instead of ISNULL()?

    Hope this helps

    Phill Carter

    --------------------

    Colt 45 - the original point and click interface

    --------------------
    Colt 45 - the original point and click interface

  • If your importing you are checking DTSSource ;)]

    Why not use ActiveX for the column in question, ie

    
    
    Function Main()
    If DTSSource("x") = True Then
    DTSDestination("x") = null
    eElseIf DTSSource("x") = False Then
    DTSDestination("x") = null
    Else
    DTSDestination("x") = DTSSource("x")
    End If
    Main = DTSTransformStat_OK
    End Function

    Far away is close at hand in the images of elsewhere.
    Anon.

  • sorry guys

    just realised that I wrote null dates - it should have been null booleans - that was another issue!

    I have decided to update all NULL booleans in source table to FALSE, then migrating the data...

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply