最简单的方法是:将DATAGIRD的datasource属性绑定到ADODC控件。ADODC1.recordsource = "select ......"
ADODC1.refresh你说的多项查询指什么?

解决方案 »

  1.   

    adodc1.recordset.open "select .... from tablename where ..."
    adodc1.recordset.refreshset datagrid.datasource=adodc1.recordset
      

  2.   

    1:
    SELECT titles.title, titleauthor.au_ord, authors.au_lname, titles.price, titles.ytd_sales, titles.pub_id
    FROM authors INNER JOIN
          titleauthor ON authors.au_id = titleauthor.au_id INNER JOIN
          titles ON titleauthor.title_id = titles.title_id2:
      用楼上的.
      

  3.   

    谢谢大家。。我想问的是TEXTBOX控件取用户的选择来控制RS。。SQL我不大懂只是最近看了点。。象TEXT1输入名字,TEXT2输入生日,TEXT3输入年龄等可以让用户选择查询的方式。。这种查询在VB中用什么方式来实现。。谢谢了。。明天结贴!
      

  4.   

    dim sql as string 
    sql="select * from tbl where name='" & text1.text & "',birthday='" & text2.text & "...."
      

  5.   

    sql="select * from tbl where name='" & text1.text & "'and birthday='" & text2.text & "' and ...."