I'm not sure if I am doing this the right way, but I need some help:
I have two text boxes, txtStartDate and txtEndDate, they have calendar controls which work fine.
I also have a box on the form which has the current year: txtYear
I have created a combo box for the user to quickly pick an entire month range: cboMonth. Naturally, it lists Jan thru Dec.
In it's OnClick properties, I'm trying to get it so that it does something like:
This enters the date - but something about it ain't right because when you then click on the calendar control, I get a type mismatch.
Any clues or suggestions folks?
Thanks
I have two text boxes, txtStartDate and txtEndDate, they have calendar controls which work fine.
I also have a box on the form which has the current year: txtYear
I have created a combo box for the user to quickly pick an entire month range: cboMonth. Naturally, it lists Jan thru Dec.
In it's OnClick properties, I'm trying to get it so that it does something like:
Code:
Dim strYear as String
strYear = me.txtYear.value
If Me.cboPickMonth.Value = "Jan" Then
Me.txtStartDate.Value = "01/01/" & strYear
Me.txtEndDate.Value = "31/01/" & strYear
End if
'etc for each month
This enters the date - but something about it ain't right because when you then click on the calendar control, I get a type mismatch.
Any clues or suggestions folks?
Thanks