G
gchichester via AccessMonster.com
Can anyone see what would cause my form frmSearchEuropeNotice not
show after applying this filter?
I have verified the results via the MsgBox and the forms filter property as
having ..
"BookingNoticeShipper Like "dne*" AND BookingNoticeConsignee Like "beva*" in
the results,
but the form is a no show, the form tab is the only visable hint that there
should be a form.
Private Sub cmdSearchBookings_Click()
Dim frm As Form, strMsgShipper As String, strMsgConsignee As String
Dim strInputShipper As String, strInputConsignee As String, strFilter As
String
Dim strShipperConsignee As String
Forms!frmHomePort.Visible = False
DoCmd.OpenForm "frmSearchEuropeNotice"
Set frm = Forms!frmSearchEuropeNotice.Form
strMsgShipper = "Enter Shipper Name " _
& "followed by an asterisk."
strMsgConsignee = "Enter Consignee Name " _
& "followed by an asterisk."
strInputShipper = InputBox(strMsgShipper)
strInputConsignee = InputBox(strMsgConsignee)
If Not IsNull(srtInputShipper) Then
strFilter = strFilter & " AND ("_
& BuildCriteria("BookingNoticeShipper", dbText, strInputShipper)
End If
If Not IsNull(strInputConsignee) Then
strFilter = strFilter & " AND ("_
& BuildCriteria("BookingNoticeConsignee", dbText, strInputConsignee)
End If
'MsgBox Mid(strFilter, 6)
frm.Filter = Mid(strFilter, 6)
frm.FilterOn = True
End Sub
Thanks
Gilc
show after applying this filter?
I have verified the results via the MsgBox and the forms filter property as
having ..
"BookingNoticeShipper Like "dne*" AND BookingNoticeConsignee Like "beva*" in
the results,
but the form is a no show, the form tab is the only visable hint that there
should be a form.
Private Sub cmdSearchBookings_Click()
Dim frm As Form, strMsgShipper As String, strMsgConsignee As String
Dim strInputShipper As String, strInputConsignee As String, strFilter As
String
Dim strShipperConsignee As String
Forms!frmHomePort.Visible = False
DoCmd.OpenForm "frmSearchEuropeNotice"
Set frm = Forms!frmSearchEuropeNotice.Form
strMsgShipper = "Enter Shipper Name " _
& "followed by an asterisk."
strMsgConsignee = "Enter Consignee Name " _
& "followed by an asterisk."
strInputShipper = InputBox(strMsgShipper)
strInputConsignee = InputBox(strMsgConsignee)
If Not IsNull(srtInputShipper) Then
strFilter = strFilter & " AND ("_
& BuildCriteria("BookingNoticeShipper", dbText, strInputShipper)
End If
If Not IsNull(strInputConsignee) Then
strFilter = strFilter & " AND ("_
& BuildCriteria("BookingNoticeConsignee", dbText, strInputConsignee)
End If
'MsgBox Mid(strFilter, 6)
frm.Filter = Mid(strFilter, 6)
frm.FilterOn = True
End Sub
Thanks
Gilc