Viewing 7 posts - 1 through 7 (of 7 total)
  • Access date format help please!
  • 40mpg
    Full Member

    My club use a MS Access database to administer member info. Part of this involves printing membership cards with expiry date, and mail merging to letters with expiry date reminders.

    I can only get these to appear in US format (mm/dd/yy) and cant find any way of changing it to UK format in the mail merge. Any suggestions how to do this? Currently I’m going through after the merge and manually changing the dates round.

    titusrider
    Free Member

    I think access drives off your local machines language settings, can you see if you are on english-uk or english – us ??

    It is also under (2010) file > options> language in access

    p.s. im no expert on access, i work with the big boys toys! SQL server

    Tom
    Free Member

    Use a DB query for the merge source and in the date field use something like:

    DateValue(the_expiry_date) AS EXPIRYDATE

    It may need some post-formatting, but it should no longer be American

    leffeboy
    Full Member

    If you are merging to Word rather than to a report are you sure that the problem isn’t in the Word template? A date is pretty much a date until it is formated for display (except in SQL of course)

    If you are merging to a report then it should pick up the regional settings for the computer you are running it on. This is often the problem when you move a database from one computer to a new one

    40mpg
    Full Member

    PC is set to English(UK). The dates are in the correct format in the Access table. I can’t find anything in word to format the date field in the document.

    leffeboy
    Full Member

    Try this:
    Open the Word doc that you merge to
    Click on the date field
    Alt-F9 to view the mergefield code. It probably looks like this
    {MERGEFIELD “expirydate”}

    Change it to look like this
    {MERGEFIELD “expirydate” \@ “dd\MM\yyyy”}

    SprocketJockey
    Free Member

    Mailmerge from a query rather than direct from the table. Use the format function in the query to sort the date for you:

    =FORMAT(<mydate>,”DD/MM/YYYY”)

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Access date format help please!’ is closed to new replies.