S
Sue Compelling
Hi
My DB in AC2007 uses the brilliant split form capability with a filter that
generates a nice subset in my datasheet half ...
Unfortunately my users only have AC2003 and I have to replicate the split
form capability.
My problem is - how do I get my expression to filter on the subform that I'm
using to represent a data sheet view of the data.
My subform is called ... TblPrimesubform
and my filter code is below (thanks to Mr B and Ken)
Private Sub txtStreetName_AfterUpdate()
Dim strFilterVal As String
If Not IsNull(Me.txtStreetName) Then
strFilterVal = Me.txtStreetName
Me.Filter = "StreetName Like '*" & strFilterVal & "*'"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
TIA
My DB in AC2007 uses the brilliant split form capability with a filter that
generates a nice subset in my datasheet half ...
Unfortunately my users only have AC2003 and I have to replicate the split
form capability.
My problem is - how do I get my expression to filter on the subform that I'm
using to represent a data sheet view of the data.
My subform is called ... TblPrimesubform
and my filter code is below (thanks to Mr B and Ken)
Private Sub txtStreetName_AfterUpdate()
Dim strFilterVal As String
If Not IsNull(Me.txtStreetName) Then
strFilterVal = Me.txtStreetName
Me.Filter = "StreetName Like '*" & strFilterVal & "*'"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
End Sub
TIA