Preserving date format

  • Thread starter mohd21uk via AccessMonster.com
  • Start date
M

mohd21uk via AccessMonster.com

I have imported a table from Microsoft Excel. This table has the date set in
the mm/dd/yyy format. However, the table recognises the date in the
dd/mm/yyyy format nad changes the format to accommodate this. Is there any
way I can change this so that the format stays mm/dd/yyyy ?
 
A

Arvin Meyer [MVP]

First check your Windows Regional settings in the Control Panel. If they
need to stay that way, it may be as simple as setting the field format in
the Access table. If that doesn't help, run an update query after the
import:

UPDATE MyTable SET MyTable.[DateField] = Format([DateField],"mm/dd/yyyy");
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
 
M

mohd21uk via AccessMonster.com

That worked fine thanks
First check your Windows Regional settings in the Control Panel. If they
need to stay that way, it may be as simple as setting the field format in
the Access table. If that doesn't help, run an update query after the
import:

UPDATE MyTable SET MyTable.[DateField] = Format([DateField],"mm/dd/yyyy");
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
I have imported a table from Microsoft Excel. This table has the date set in
the mm/dd/yyy format. However, the table recognises the date in the
[quoted text clipped - 3 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top