Neville Bentley
Board Regular
- Joined
- Oct 3, 2007
- Messages
- 101
Hi out there,
Can any one help me please. I have a command button that a user can click on to enter a date from a Calendar control.
What I am expecting is that when the date is chosen in the calendar, to paste that value into the DateText box and I keep getting a "Compile error" Variable not defined and it highlights DateText.Value, where am I going wrong?
Private Sub cmbCalendar_Click()
frmCalendar.Show
If DateText.Value = "" Then
DateText.Value = Calendar1.Value
End If
End Sub
Cheers
Neville
Can any one help me please. I have a command button that a user can click on to enter a date from a Calendar control.
What I am expecting is that when the date is chosen in the calendar, to paste that value into the DateText box and I keep getting a "Compile error" Variable not defined and it highlights DateText.Value, where am I going wrong?
Private Sub cmbCalendar_Click()
frmCalendar.Show
If DateText.Value = "" Then
DateText.Value = Calendar1.Value
End If
End Sub
Cheers
Neville