H
Hiro
Hello Forum Members:
I am using Access 2000 and the sub form on the main form is displayed as
datasheet view. When the filtered results are opened, the datasheet view
alignment is changed somewhat. Before filtering, the entire datasheet view is
full-filled in sub form. And after filtering, I see space on the far right
side of the sub form. Do anyone know how I can correct this problem?
Here is the code for the filter, but the filtered results are correct, so I
am not sure if this is related to the code. Is it something that I need to
adjust on the property of the main form and sub form?
{code}
Private Sub cmdFilter_Click()
Dim strWhere As String
Dim lngLen As Long
If Not IsNull(Me.FindWord) Then
strWhere = strWhere & "([English] Like ""*" & Me.FindWord & "*"")
AND "
End If
lngLen = Len(strWhere) - 5
If lngLen <= 0 Then
MsgBox "Nothing is specified.", vbInformation, "Nothing to show."
Else
strWhere = Left$(strWhere, lngLen)
Me.Child19.Form.Filter = "[English] Like '*" & Me.FindWord & "*'"
Me.Child19.Form.FilterOn = True
End If
End Sub
{/code}
I am using Access 2000 and the sub form on the main form is displayed as
datasheet view. When the filtered results are opened, the datasheet view
alignment is changed somewhat. Before filtering, the entire datasheet view is
full-filled in sub form. And after filtering, I see space on the far right
side of the sub form. Do anyone know how I can correct this problem?
Here is the code for the filter, but the filtered results are correct, so I
am not sure if this is related to the code. Is it something that I need to
adjust on the property of the main form and sub form?
{code}
Private Sub cmdFilter_Click()
Dim strWhere As String
Dim lngLen As Long
If Not IsNull(Me.FindWord) Then
strWhere = strWhere & "([English] Like ""*" & Me.FindWord & "*"")
AND "
End If
lngLen = Len(strWhere) - 5
If lngLen <= 0 Then
MsgBox "Nothing is specified.", vbInformation, "Nothing to show."
Else
strWhere = Left$(strWhere, lngLen)
Me.Child19.Form.Filter = "[English] Like '*" & Me.FindWord & "*'"
Me.Child19.Form.FilterOn = True
End If
End Sub
{/code}