BindingSource.Filter = "Col1='" & sumtymsnullsumtymsnot & "'"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nev
    Contributor
    • Oct 2007
    • 251

    BindingSource.Filter = "Col1='" & sumtymsnullsumtymsnot & "'"

    Does anyone know how to do that? In my real project actually, I filter on two fields like this...

    bindingsource.f ilter = "col1='" & var1 & "' AND col2='" & var2 & "'"

    wherein var1 or var2 may contain a null value. Its just the same as if I want to show all records with null values.

    Any ideas?
  • Murugs
    New Member
    • Nov 2007
    • 18

    #2
    Try the below code.
    dv.RowFilter = "(Isnull(col1,' Null Column') = 'Null Column' or Isnull(col2,'Nu ll Column') = 'Null Column') or (col1='TEST' and col2='TEST')";
    Hope it will solve ur problem.

    Cheers,
    Murugs.

    Comment

    • nev
      Contributor
      • Oct 2007
      • 251

      #3
      Originally posted by Murugs
      Try the below code.
      dv.RowFilter = "(Isnull(col1,' Null Column') = 'Null Column' or Isnull(col2,'Nu ll Column') = 'Null Column') or (col1='TEST' and col2='TEST')";
      Hope it will solve ur problem.

      Cheers,
      Murugs.
      thanks for the input.

      Comment

      Working...