I am requering a listbox after the user has made a selection to turn off the selection. Maybe there is a better way to do it, but it works on a stand alone form but not when I add the Form to a Tab Form. SEE CODE. The error is: "apply filter" not allowed. when the "Yes" path is followed on the if.<br>
<br>
'--- Do requery depending on where invoked from<br>
Dim FormToCheckFor As String, retmsg As String<br>
FormToCheckFor = "MotorDataEntry"<br>
retmsg = SeeIfFormLoaded(FormToCheckFor)<br>
If retmsg = "Yes" Then<br>
'''Forms!MotorDataEntry.AllowFilters = True<br>
DoCmd.Requery "Forms!MotorDataEntry!CBAccessoryType"<br>
Else<br>
DoCmd.Requery "CBAccessoryType"<br>
End If<br>
<br>
<br>
'--- Do requery depending on where invoked from<br>
Dim FormToCheckFor As String, retmsg As String<br>
FormToCheckFor = "MotorDataEntry"<br>
retmsg = SeeIfFormLoaded(FormToCheckFor)<br>
If retmsg = "Yes" Then<br>
'''Forms!MotorDataEntry.AllowFilters = True<br>
DoCmd.Requery "Forms!MotorDataEntry!CBAccessoryType"<br>
Else<br>
DoCmd.Requery "CBAccessoryType"<br>
End If<br>
<br>