CodePudding user response:
Put a timer and set the Enabled=true, the Interval for a non-zero number,Write the following code:
Private b As Boolean
Private Sub Timer1_Timer ()
If Now & gt; A certain time And Not (b) Then
B=True 'did not do
To do STH.
End the If
End Sub
CodePudding user response:
What is the time format (to add dateCodePudding user response:
Time=# 1/30/2014 14:07 PM#CodePudding user response:
Reference in the MSDN:CDate function example
This example USES the CDate function to convert a string to Date, generally speaking, a hard-coded string format of the Date and time (as shown in the example) is not good, a better approach is to use the Date of the original meaning expression and time of the original meaning expression (such as # 2/12/1969 #, # 4:45:23 PM#),
Dim MyDate MyShortDate, MyTime, MyShortTime
MyDate="February 12, 1969" 'definition dates,
MyShortDate=CDate (MyDate) 'into the Date data type,
MyTime="4:35:47 PM" 'definition of time,
MyShortTime=CDate (MyTime) 'into the Date data type,
CodePudding user response:
why not, how should manageCodePudding user response: