Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Time format Access and mail merge

Posted on 2000-04-15
8
Medium Priority
?
272 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
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
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 200 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

879 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