Date format is not uniform

D

Dave

I am using MS-Word 2002 and importing data into a form
letter from an MS-Access 2000 database query. I have the
date format in the database (table, form, query and
report) set to "short date". When the field is merged
into the form letter, MS-Word converts the short date
into the "general date" format. How can I resolve this
problem?

example:
database date format = mm/dd/yy
word displays as: yyyy-mm-dd 00:00:00

Any help would be greatly appreciated.

Dave
 
P

Peter Jamieson

If you're inserting the date using a MERGEFIELD field, use e.g.

{ MERGEFIELD mydate \@"MM/DD/YY" }

If you're inserting the date in a column in a DATABASE field, you will
probably need to use a function such as format() in the Query SQL to convert
the date to the string value you need.
 

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