G
Guest
Well I thought I'd try this myself and I failed miserably. Here's what I'm
trying to do:
I have a subform (affectionetly called Child17). On the main form, there
are two fields that I'm using to create a date range filter. Here's the code
I'm attempting to use to put the filter in place. Right now, the error I'm
getting is "You can't assign a value to this object".
Dim strWhere As String
Dim lngLen As Long
Const conDateFormat = "\#mm\/dd\/yyyy\#"
strWhere = strWhere & "(date=#" & " between " &
Format(Me.txtBeginDate, conDateFormat) & " And " & Format(Me.txtEndDate,
conDateFormat)
Me.Child17.Form.Filter = strWhere
Me.Child17.Form.FilterOn = True
trying to do:
I have a subform (affectionetly called Child17). On the main form, there
are two fields that I'm using to create a date range filter. Here's the code
I'm attempting to use to put the filter in place. Right now, the error I'm
getting is "You can't assign a value to this object".
Dim strWhere As String
Dim lngLen As Long
Const conDateFormat = "\#mm\/dd\/yyyy\#"
strWhere = strWhere & "(date=#" & " between " &
Format(Me.txtBeginDate, conDateFormat) & " And " & Format(Me.txtEndDate,
conDateFormat)
Me.Child17.Form.Filter = strWhere
Me.Child17.Form.FilterOn = True