convert numbers to time

C

chmcrae

I was working in Excel and typed in my time values as numbers (military
time), exported the data to Access and now would like to convert my numbers
to hrs:nn. Any suggestions would be greatly appreciated.
chmcrae
 
J

Jeff Boyce

Access does not have a "time" data type. Access does have a Date/Time data
type.

If you only have time, consider storing that data in Access as Text, then
coming up with procedures that do the conversion/formatting.

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.
 
K

KARL DEWEY

Try this using your text field name for BigField --
Expr1: IIf([BigField] Is
Null,Null,IIf([BigField]="2400",CVDate("00:00:00"),CVDate(Left([BigField],2)
& ":" & Right([BigField],2) & ":00")))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top