Hour-Minute-Format

  • Thread starter Thread starter Wolfgang Voss
  • Start date Start date
W

Wolfgang Voss

Hello Newsgroup,
how can I get a number of minutes in a query in hours and minutes (hh:mm) ?

Thank You.

Wolfgang
..
 
Wolfgang,

Use the Format() function:
SELECT Format(dteMyDate, "hh:nn") As myTime
FROM tblMyTable

....you see, the letter "m" is reserved for Months. To get minutes, you use
the letter "n".

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 
Hi,
how can I get a number of minutes in a query in hours and minutes (hh:mm)
?

try to calculate the field in your query like this:

HH_MM: minutes \ 60 & ":" & minutes mod 60

HTH

Thomas
 

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

Similar Threads


Back
Top