Question : Filter on a subform of a tab control

Each tab contains its own subform attached to a linked excel sheet.  I will be adding various filters on each tab but I think I have the wrong syntax.  The filters will located on the individual tabs with text boxes and/or command buttons.

Me.NCOsubform.Form.Filter = "[shippernum]=" & ShipperText
Me.NCOsubform.Form.FilterOn = True

Answer : Filter on a subform of a tab control


if the Data type of [shippernum] is text

Me.NCOsubform.Form.Filter = "[shippernum]='" & ShipperText & "'"
Me.NCOsubform.Form.FilterOn = True
Random Solutions  
 
programming4us programming4us