Thanks for the response. However it still returns the month as a
number and not in character form e.g. 24-11-2004 instead of 24-NOV-2004
Can you help again?
Cheers.
Gox wrote:[color=blue]
> Try this function:
>
> Function ToAmDate(dDatum As Variant) As Variant
> If IsNull(dDatum) Then
> ToAmDate = Null
> Exit Function
> End If
> ToAmDate = LTrim(str(Day(dDatum))) & "-" &
> LTrim(str(Month(dDatum))) & "-" & LTrim(str(Year(dDatum)))
> End Function
>
>
>
carl.barrett@newcastle.gov.uk wrote:[color=green]
> > Hi,
> >
> > I am writing to a text file the records in an access table that is to
> > be loaded into an Oracle system.
> >
> > However, I have been told that the date fields in the records I have
> > exported to the text file that are not compatible with oracle. The
> > format looks like: 01/01/2006 and I need it to look like 01-JAN-2006.
> >
> > I have tried using the format function and the variable still shows it
> > as 01/01/2006.
> >
> > The text file is generated by clicking from a button on a form which
> > contains the string/date variables and a loop with the write lines. I
> > am not on my work PC at the minute so can't show what I've created, but
> > can post it later if needed.
> >
> > Can anyone give me an idea of how to get this sorted.
> >
> > Cheers.
> >[/color][/color]