Solved

Time format Access and mail merge

Posted on 2000-04-15
8
264 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
  • 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
 
LVL 54

Expert Comment

by:nico5038
ID: 2720493
repstein,

Just out of curiosity:
Is the \* MERGEFORMAT referring/using  the regional settings ?
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now