我先这么写的:
    Adodc1.RecordSource = "select * from daystatistics where (stadate <= '" + startDT + "') and (stadate >= '" + endDT + "');
    其中startDT和endDT是“开始日期”和“结束日期”两个参数,
    结果得不到记录集(好像记录集是空的???)    然后又试了下面的方法,同样没记录返回
    Dim strQuery As String
    strQuery = "select * from daystatistics where (stadate <= '" & startDT & "') and (stadate >= '" & endDT & "');"
    Adodc1.RecordSource = strQuery    请教高手如何用ADODC控件实现带参数的查询,初学VB望各位给出例程
先谢谢了!