A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formatting time: eliminate additional :00



 
 
Thread Tools Display Modes
  #1  
Old January 15th, 2010, 09:51 PM posted to microsoft.public.access.reports
Claudia in DC
external usenet poster
 
Posts: 2
Default Formatting time: eliminate additional :00

I would like to include a time and date together (not the current one, but
from the database).

When I use:
=([Date]) & ", " & ([Time])

I get:
4/30/2009, 9:15:00 AM

How can I get rid of the last :00?

  #2  
Old January 15th, 2010, 09:59 PM posted to microsoft.public.access.reports
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Formatting time: eliminate additional :00

=Format([Date] + [Time], "m/d/yyyy \, h:nn")

Incidentally, if those are your real field names, change them. Date and TIme
are both reserved words, and should never be used for your own purposes. For
a comprehensive list of names to avoid (as well as a link to a free utility
to check your application for compliance), check what Allen Browne has at
http://www.allenbrowne.com/Ap****ueBadWord.html

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Claudia in DC" wrote in message
...
I would like to include a time and date together (not the current one, but
from the database).

When I use:
=([Date]) & ", " & ([Time])

I get:
4/30/2009, 9:15:00 AM

How can I get rid of the last :00?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.