Solved

Accesss export with formatting

Posted on 2013-01-23
3
383 Views
Last Modified: 2013-01-23
Dear Experts,

I have a database that uses a few fields that is of data type Date/Time, and want to use is as a time field, such as 6:13.
I am  able to display as such within Access, but when I export to Excel, the whole info comes, date, time with AM/PM.
How can I just export the way I am displaying?
Please advise.
0
Comment
Question by:yballan
3 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 38812553
Build a query that formats the field the way you want, and then export that query. For example:

SELECT Field1, Field2, Format(Field3, "hh:mm:ss") AS MyTimeField FROM MyTable

Save the query, and export it instead of a table.
0
 
LVL 119

Assisted Solution

by:Rey Obrero
Rey Obrero earned 250 total points
ID: 38812558
try using a query and format the field, like this

select format([dateField],"h:nn")
from tableName

save the query
then export the query
0
 

Author Closing Comment

by:yballan
ID: 38812628
thank you, that makes sense!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

14 Experts available now in Live!

Get 1:1 Help Now