time format

  • Thread starter Thread starter David M. Fizer
  • Start date Start date
D

David M. Fizer

Hello,


I used this my report =FormatDateTime(Time(),4) in a text box to get the
time to display 4 digits. Using Access 2003 it worked well but in Access
97 it didn't. Is there a way to get this to work in Access 97?



TIA,
David
 
=Format(Time(), "hh:nn")

FormatDateTime was new in VBA 6, and Access 2000 was the first version of
Access to use VBA 6. FormatDateTime also works only when the query is
executed within the Microsoft Access environment, you can't use it when the
query is executed by another application, so I generally stick with Format()
even in versions of Access that use VBA 6.
 

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

Back
Top