Anonymous
Anonymous asked in 電腦與網際網路程式設計 · 2 decades ago

VB datagrid的資料沒有顯示

查詢訂單編號後

datagrid要顯示資料

不過卻沒有顯示

為什麼啊?

請幫我看看哪裡有錯??

Adodc1.RecordSource = "SQL查詢語法"

Adodc1.Refresh

Set dgDetail.DataSource = Adodc1

dgDetail.Refresh

1 Answer

Rating
  • Sean
    Lv 5
    2 decades ago
    Favorite Answer

    Adodc1.CommandType=adCmdText '<--要設定這個屬性

    Adodc1.RecordSource = "SQL查詢語法"

    Adodc1.Refresh

    Set dgDetail.DataSource = Adodc1

    dgDetail.Refresh

Still have questions? Get your answers by asking now.