Command1_Click
Select Case cbo1(Index%)
Case cbo1(0)
SQL = " Select * from source Where test1 = " & cbo1(0).ItemData(cbo1(0).ListIndex) &""
Case cbo1(1)
SQL = " Select * from source Where test2 = " & cbo1(1).ItemData(cbo1(1).ListIndex) &""
End Select
我想引用cbo1來做select case...
以上程式碼在cbo1_Click裡面可以執行...
放到command_click裡面執行cbo1(0)可以...
但是執行cbo1(1)就會出現不正確的陣列索引值.....
請問各位錯誤的地方是... ? 謝謝