W
WSF
Access97
I am creating a table in an external MDB using
DoCmd.RunSQL "SELECT tbldata.JobId , tbldata.CustomerId, tbldata.[Date
Received], tbldata.OrderNo INTO tblHistory From tbldata WHERE
(((tbldata.[Date Received])>=DateSerial(Year(Date()),Month(Date())-6,1)));"
(as a contiguous string)
This works fine.
But the format of the {Date Received] field in the source table is
dd/mm/yy hh:nn:ss. I would like the result to be dd-mmm-yy (or at least
without the Hours / Mins / Seconds).
Can I prescribe the format at the time of creating the table or change
the format in the external table after the event?
I've looked at TableDef information in the Help file but.....
Thanks for your help.
WSF
I am creating a table in an external MDB using
DoCmd.RunSQL "SELECT tbldata.JobId , tbldata.CustomerId, tbldata.[Date
Received], tbldata.OrderNo INTO tblHistory From tbldata WHERE
(((tbldata.[Date Received])>=DateSerial(Year(Date()),Month(Date())-6,1)));"
(as a contiguous string)
This works fine.
But the format of the {Date Received] field in the source table is
dd/mm/yy hh:nn:ss. I would like the result to be dd-mmm-yy (or at least
without the Hours / Mins / Seconds).
Can I prescribe the format at the time of creating the table or change
the format in the external table after the event?
I've looked at TableDef information in the Help file but.....
Thanks for your help.
WSF