Date and Time query
- From: "Monsignor JAV" <jonvillalva@xxxxxxxxx>
- Date: 16 Aug 2006 09:13:49 -0700
Hello,
I have imported several thousand lines of data from comma separated
files to a temp import table. In the comma separated values the date
and time of the sample are included in the same field. I need to
extract the date and time to another table but into separate fields and
in a different format than originally imported in from. The date and
time is in a field called [DateTime] as seen below.
7/27/2005 12:00:00 PM
I need to separate the date into the format, yyyymmdd, and the time
into 24 hour format, hhnn using an append query to another table I have
created for storage.
I have tried to use the DatePart in conjunction with the format
operator with no luck. I have also attempted queries using the
DateValue, TimeValue, and Cdate all to no avail. I have tried to do
assemble the query breaking it up in parts just doing the Date part
first but nothing seems to work. Can someone please point me in the
right direction since I only get an invalid expression error or
notification that a parenthesis is not closed. Any help would be
wonderful.
Thanks!
Jon
.
- Follow-Ups:
- Re: Date and Time query
- From: John Vinson
- Re: Date and Time query
- From: John Spencer
- Re: Date and Time query
- From: Jeff Boyce
- Re: Date and Time query
- Prev by Date: Re: "Could not delete from specified table" Error
- Next by Date: Re: re-arranging the data in an access table
- Previous by thread: Re: "Could not delete from specified table" Error
- Next by thread: Re: Date and Time query
- Index(es):
Relevant Pages
|
Loading