tech on the net
Home About Us Feedback Site Map


Access Excel Word


SQL Oracle / PLSQL SQL Server MySQL MariaDB PostgreSQL

Web Development

HTML CSS Color Picker


C Language


ASCII Table Linux UNIX Java Clipart Joke of the Moment

Other Sites

CheckYourMath BigActivities DigMinecraft
Share this page:

MS Access: TimeValue Function

Learn how to use the Access TimeValue function with syntax and examples.


The Microsoft Access TimeValue function converts a string to a time.


The syntax for the Microsoft Access TimeValue function is:

TimeValue ( string_time )

Parameters or Arguments

string_time is a string representation of a time. string_time can be a time ranging from 0:00:00 to 23:59:59. string_time can be entered in either 12-hour or 24-hour clock notation.

Applies To

The TimeValue function can be used in the following versions of Microsoft Access:


TimeValue ("3:12:57 PM") would return 3:12:57 PM
TimeValue ("15:12:57") would return 3:12:57 PM

Example (in VBA Code)

The TimeValue function can be used in VBA code in Microsoft Access. For example:

Dim LTime As Date

LTime = TimeValue ("18:30:12")

In this example, the variable called LTime would now contain the value of 6:30:12 PM.

Example (in SQL/Queries)

You can also use the TimeValue function in a query in Microsoft Access.

Microsoft Access