displaying data in datagird

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mukeshsrivastav
    New Member
    • Dec 2006
    • 20

    #1

    displaying data in datagird

    thanks
    but sir writting query is not my problem.major problem i m finding is who to display quered data in datagrid.give me the syntex.datagrid is not allowing me show data searched through the query.it show data in single field filtered mode.
    code which i m using is
    adodc1.recordse t.filter="first name like ' "& text1.text & "%'".
    but system does not take this
    adodc1.recordse t.filter="first name like ' "& text1.text & "%'and lastname like' " & text2.text &"%'";

    my query returns more then one record.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by mukeshsrivastav
    thanks
    but sir writting query is not my problem.major problem i m finding is who to display quered data in datagrid.give me the syntex.datagrid is not allowing me show data searched through the query.it show data in single field filtered mode.
    code which i m using is
    adodc1.recordse t.filter="first name like ' "& text1.text & "%'".
    but system does not take this
    adodc1.recordse t.filter="first name like ' "& text1.text & "%'and lastname like' " & text2.text &"%'";

    my query returns more then one record.
    Try using * instead of %.

    Comment

    • seshu
      New Member
      • Nov 2006
      • 156

      #3
      hi sir this is seshu i dont know the exact anser for your query but i can sujjest u to check at one place that is here
      you gave ---------------first name like '" & text1.text% & "'
      insted try this-------------------firxtname like '" & text1.text & "'%
      i think this will work
      if not try to concatinate both text,text and %

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by seshu
        you gave ---------------first name like '" & text1.text% & "'
        insted try this-------------------firxtname like '" & text1.text & "'%
        I'm not certain, but shouldn't the % (or in my opinion, more likely *) be inside the single quote delimiters?

        Comment

        Working...