Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. how to filter data

how to filter data

Scheduled Pinned Locked Moved Visual Basic
tutorialquestiondatabasehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    areon25
    wrote on last edited by
    #1

    hi all.. i have a question about how to filter the data.. acctually, what know how to filter data is object.recordset.filter = filterstring for example adodc1.recordset.filter = "author = 'david'" the question from the example above, it will filter only the word david.. so how i want to filter all the name david ?? for example in my database there are many david like david reader, david blake and what ever david, so how i want to filter all the name david?? after i filter it, how i want to display all record back.. what i do is with this code adodc1.recordset. filter = "" or adodc1.recordset.filter = adfilternone but there are nothing happen.. actually, i display my data with datagrid.. can someone know how to solve the problem.. thanks.. areon25

    L 1 Reply Last reply
    0
    • A areon25

      hi all.. i have a question about how to filter the data.. acctually, what know how to filter data is object.recordset.filter = filterstring for example adodc1.recordset.filter = "author = 'david'" the question from the example above, it will filter only the word david.. so how i want to filter all the name david ?? for example in my database there are many david like david reader, david blake and what ever david, so how i want to filter all the name david?? after i filter it, how i want to display all record back.. what i do is with this code adodc1.recordset. filter = "" or adodc1.recordset.filter = adfilternone but there are nothing happen.. actually, i display my data with datagrid.. can someone know how to solve the problem.. thanks.. areon25

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      areon25 wrote:

      adodc1.recordset.filter = "author = 'david'" the question from the example above, it will filter only the word david.. so how i want to filter all the name david ?? for example in my database there are many david like david reader, david blake and what ever david, so how i want to filter all the name david?? after i filter it, how i want to display all record back.. what i do is with this code adodc1.recordset. filter = "" or adodc1.recordset.filter = adfilternone but there are nothing happen.. actually, i display my data with datagrid.. can someone know how to solve the problem.. thanks..

      I also used to work with data in access or from vb6. I never use filter to get data. But it doesn't mean that it is wrong at all. What I usually done is query data by using sql statement. I suggest you to read some information from here[^], and you might get some idea relate to your question.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups