Hi everyone! I havent had to use th forum in a whhile but here-goes:
I am creating a dropdown to dictate a return date. Here is my code:
Private Sub cboSelectAttempts_Change()
I am wanting "txtFlup.Text" to return the date specified but i want to exclude weekends.
Anyone's help is appreciated!!
Thanks
Kobie
I am creating a dropdown to dictate a return date. Here is my code:
Private Sub cboSelectAttempts_Change()
If cboSelectAttempts.ListIndex = 0 Then
If cboSelectAttempts.ListIndex = 1 Then
If cboSelectAttempts.ListIndex = 2 Then
If cboSelectAttempts.ListIndex = 3 Then
If cboSelectAttempts.ListIndex = 4 Then
If cboSelectAttempts.ListIndex = 5 Then
End SubtxtFlup.Text = Format(Now + 4, "mm/dd/yyyy")
cboSelectAttempts.SetFocus
End IfcboSelectAttempts.SetFocus
If cboSelectAttempts.ListIndex = 1 Then
txtFlup.Text = Format(Now + 4, "mm/dd/yyyy")
txtBtn.SetFocus
End IftxtBtn.SetFocus
If cboSelectAttempts.ListIndex = 2 Then
txtFlup.Text = Format(Now + 3, "mm/dd/yyyy")
txtBtn.SetFocus
End IftxtBtn.SetFocus
If cboSelectAttempts.ListIndex = 3 Then
txtFlup.Text = Format(Now + 2, "mm/dd/yyyy")
txtBtn.SetFocus
End IftxtBtn.SetFocus
If cboSelectAttempts.ListIndex = 4 Then
txtFlup.Text = Format(Now + 1, "mm/dd/yyyy")
txtBtn.SetFocus
End IftxtBtn.SetFocus
If cboSelectAttempts.ListIndex = 5 Then
txtFlup.Text = Format(Now + 1, "mm/dd/yyyy")
txtBtn.SetFocus
End IftxtBtn.SetFocus
I am wanting "txtFlup.Text" to return the date specified but i want to exclude weekends.
Anyone's help is appreciated!!
Thanks
Kobie