Re: Convert Numeric field to Date
- From: John W. Vinson <jvinson@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 10 Aug 2007 15:44:40 -0600
On Fri, 10 Aug 2007 12:50:00 -0700, Access Newb <Access
Newb@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hello,
I've seen similar questions to this but need some help/clarification.
I have Access 2003 with linked tables to a DB2 database. The fields
I am querying are numeric in this format 20070810 (yyyymmdd)
What I am trying to do is display customer request date and
actual ship date in mm/dd/yyyy format on one query.
On another query I am trying to summarize item shipments by month.
I know next to nothing about this. Any help with baby steps would
be greatly appreciated.
I'd suggest using the DateSerial() function to actually generate a date field:
MyDate: DateSerial([thisdate] \ 10000, [thisdate] \ 100 MOD 100, [thisdate]
MOD 100))
to mathematically extract the year, month and day portions. Note that it's the
integer divide operator \ not the more familiar /.
John W. Vinson [MVP]
.
- Prev by Date: Re: Add 2 rows at 1st time
- Next by Date: Re: Update Qry
- Previous by thread: Re: Convert Numeric field to Date
- Next by thread: Re: Convert Numeric field to Date
- Index(es):
Relevant Pages
|