If I have column headings named
Wire
Walker Conn #
Base Sensor

Only the first DoCmd works ("wire =wires")

I get an error on the other two.
I have tried different syntax and have not been able to get it to work.



VB Code:
  1. Public Sub SampleSearch()
  2.  
  3. DoCmd.ShowAllRecords
  4.  
  5. DoCmd.ApplyFilter , "wire = wires"
  6.  
  7. DoCmd.ApplyFilter , "Walker Conn #  = ConnNum"
  8.  
  9. DoCmd.ApplyFilter , "Base Sensor = BaseSensor"
  10.  
  11.  
  12. End Sub