Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code to determine any Friday's date
Message
From
24/10/2002 17:47:36
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00715169
Message ID:
00715182
Views:
11
Private Sub Text1_LostFocus()

    If Format(CDate(Text1.Text), "dddd") = "Friday" Then
        Text2.Text = CDate(Text1.Text) + 2
    Else
        Text2.Text = Text1.Text
    End If
    
End Sub
Make sure you test for valid date values in the text boxes before moving focus.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform