Solved

Time format Access and mail merge

Posted on 2000-04-15
8
270 Views
Last Modified: 2008-02-01
Greetings To All
===========

I keep a database of club details which includes meeting time as a "Short Time" field and appears as 18:30. I also use the 24hr option.

Amongst other things I use the data for mailmerge in Word2K and the time is then displayed as 18:30:00

What can I do to remove the seconds?

Many thanks,

robinski
0
Comment
Question by:robinski
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 54

Expert Comment

by:nico5038
ID: 2719588
Did you try to change the timeformat in the regional setting in the configuration window?
0
 
LVL 10

Expert Comment

by:brewdog
ID: 2719830
Are you using the table itself as the record source for the mail merge? What about basing a query off the table and putting this for your time field:

CStr(YourField)

I'm not a machine with Access right now, so I can't guarantee it would work, but . . . it would convert it to text rather than letting Word read the stored time value.

Hope this helps . . .

brewdog
0
 
LVL 2

Expert Comment

by:repstein
ID: 2720334
You need to fix this from the Word side, not the Access side.

1. In your mail merge source document, go to the time fields that are not displaying properly. The will look something like <<meetingtime>>

2. Right click on the field and select toggle field codes

3. If you haven't done anything to the field, it will probably have a part that says \* MERGEFORMAT

Replace this with \@h:mm
If  you want am and pm to show, replace it with
\@h:mm am/pm

If you want the leading 0 to show in the time with AM or PM, replace it with
\@hh:mm AM/PM

Hope this helps.

Richard
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 54

Expert Comment

by:nico5038
ID: 2720493
repstein,

Just out of curiosity:
Is the \* MERGEFORMAT referring/using  the regional settings ?
0
 
LVL 2

Expert Comment

by:repstein
ID: 2720562
nico5038:

\* MERGEFORMAT is a switch that maintains formatting directly applied to a field in Word. As best as I can tell, it sometimes is needed, and sometimes is not. If formatting is lost in the mailmerge document, then it needs to be added. It's automatically applied by Word when a field is inserted and Preserve formatting during updates has been checked in the Field dialog box. If you want to use a picture switch (such as \@ for times), this needs to come before the \* MERGEFORMAT switch).

It doesn't have anything to do with regional settings.

Richard
0
 

Author Comment

by:robinski
ID: 2721002
restein

Many thanks. Your technique certainly removed the seconds but I use a 24 hour clock. Is this possible?

robinski
0
 
LVL 2

Accepted Solution

by:
repstein earned 50 total points
ID: 2721171
\@ H:mm
should do the trick.

Richard
0
 

Author Comment

by:robinski
ID: 2721197
Thanks very very much.

robinski
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question