how can i change system date and time on a form

R

Ron Weiner

From Access help

Time Statement Example
This example uses the Time statement to set the computer system time to a
user-defined time.

Dim MyTime
MyTime = #4:35:17 PM# ' Assign a time.
Time = MyTime ' Set system time to MyTime.Date Statement ExampleThis
example uses the Date statement to set the computer system date. In the
development environment, the date literal is displayed in short date format
using the locale settings of your code.Dim MyDate
MyDate = #February 12, 1985# ' Assign a date.
Date = MyDate ' Change system date.
Ron W
 

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