Extract date from date/time field in query used with mailmerge.

P

Pat B

I've created a query to use with a WORD mailmerge document. To extract the
date only, I used DateValue() which then displays just the date in the query.
But when I pull it into the mailmerge document, it shows the complete date
and time and seconds. How can I get it to just display as it does in the
actual query?
 
P

Pat B

I do use the query as the source document for the merge. Somehow I think I
again how to format it in the actual document by using the toggle, but can't
get it to work.
 
P

Piet Linden

I do use the query as the source document for the merge.  Somehow I think I
again how to format it in the actual document by using the toggle, but can't
get it to work.

You can coerce the date into a string using FORMAT([someDate],"mmm dd,
yyyy") or similar... (choose your own format...) Seems kinda silly,
but I find working with Word codes beyond my patience level.
 

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