M
Mishanya
I have Mainform with cboTimeRangeSelector based on tblTimeRange:
RangeID Range RangeExpression
1 Month "Between Date( ) And DateAdd("m", 1, Date( )) "
2 Quarter "Between Date( ) And DateAdd("m", 3, Date( )) "
3 Year "Between Date( ) And DateAdd("m", 12, Date(
)) "
4 ThisYear "Year = Year()"
The Subform is based on tblEventDetails and has EventDate control. It is
linked to the Mainform by ClientID.
I try to filter the output of the subform by the AfterUpdate event of the
cboTimeRangeSelector:
Dim f As Form
Set f = Forms![Mainform]![Subform].Form
f.Filter = "EventDate = " & Me!cboTimeRangeSelector.Column(2)
f.FilterOn = True
and get run-yime error 2448 "You can't assign a value to this object".
1) Is my approach legit at all?
2) If yes, what is the catch?
RangeID Range RangeExpression
1 Month "Between Date( ) And DateAdd("m", 1, Date( )) "
2 Quarter "Between Date( ) And DateAdd("m", 3, Date( )) "
3 Year "Between Date( ) And DateAdd("m", 12, Date(
)) "
4 ThisYear "Year = Year()"
The Subform is based on tblEventDetails and has EventDate control. It is
linked to the Mainform by ClientID.
I try to filter the output of the subform by the AfterUpdate event of the
cboTimeRangeSelector:
Dim f As Form
Set f = Forms![Mainform]![Subform].Form
f.Filter = "EventDate = " & Me!cboTimeRangeSelector.Column(2)
f.FilterOn = True
and get run-yime error 2448 "You can't assign a value to this object".
1) Is my approach legit at all?
2) If yes, what is the catch?