Instructions
Private Sub Samples_Sent_MouseDown(Button As Integer, _
Shift As Integer, X As Single, _
Y As Single) ' Show Calendar6 and set its date. Calendar6.Visible = True Calendar6.SetFocus ' Set to today if Samples_Sent has no value. Calendar6.Value = IIf(IsNull(Samples_Sent), Date, Samples_Sent.Value) End Sub |
Private Sub Calendar6_Click() ' Set Samples_Sent to the selected date and hide the Calendar6. Samples_Sent.Value = Calendar6.Value Samples_Sent.SetFocus Calendar6.Visible = False End Sub |