G
Guest
All the searchs work except the search for the Denial Details I have the main
search form that pulls off the main Denials table, this form has a subform in
the footer that opens a datasheet view of the search results. Within that
subform is another subform for the Denial Details of reasons for denials.
In the main search form I have an unbound combo box that lists the reasons
for denials. When I hit the search button I continue to get a Run-time 2448,
Can't assign value to this object.
I am really doing alot of learning of this as I go along. Below is part of
the code.
Private Sub Search_Click()
Dim strWhere As String
' If Reasons
If Not IsNull(Reasons) Then
' Add it to the predicate - match on leading characters
strWhere = strWhere & " AND " & "Denial Details.Reasons Like '*" &
Me.Reasons & "*'"
End If
If strError <> "" Then
MsgBox strError
Else
'DoCmd.OpenForm "Browse Denials", acFormDS, , strWhere, acFormEdit,
acWindowNormal
If Not Me.FormFooter.Visible Then
Me.FormFooter.Visible = True
DoCmd.MoveSize Height:=Me.WindowHeight + Me.FormFooter.Height
End If
Me.Browse_All_Denials.Form.Filter = strWhere
Me.Browse_All_Denials.Form.FilterOn = True
End If
End Sub
search form that pulls off the main Denials table, this form has a subform in
the footer that opens a datasheet view of the search results. Within that
subform is another subform for the Denial Details of reasons for denials.
In the main search form I have an unbound combo box that lists the reasons
for denials. When I hit the search button I continue to get a Run-time 2448,
Can't assign value to this object.
I am really doing alot of learning of this as I go along. Below is part of
the code.
Private Sub Search_Click()
Dim strWhere As String
' If Reasons
If Not IsNull(Reasons) Then
' Add it to the predicate - match on leading characters
strWhere = strWhere & " AND " & "Denial Details.Reasons Like '*" &
Me.Reasons & "*'"
End If
If strError <> "" Then
MsgBox strError
Else
'DoCmd.OpenForm "Browse Denials", acFormDS, , strWhere, acFormEdit,
acWindowNormal
If Not Me.FormFooter.Visible Then
Me.FormFooter.Visible = True
DoCmd.MoveSize Height:=Me.WindowHeight + Me.FormFooter.Height
End If
Me.Browse_All_Denials.Form.Filter = strWhere
Me.Browse_All_Denials.Form.FilterOn = True
End If
End Sub