Anonymous
Anonymous asked in 電腦與網際網路程式設計 · 1 decade ago

VB中的「使用者自訂形態尚未定義」是什麼意思???

Dim cn As Adodb.ConnectionDim rs As Adodb.RecordsetDim t As IntegerDim p As IntegerDim ans() As IntegerDim sel()  As IntegerPrivate Sub Command10_Click()EndEnd SubPrivate Sub Command8_Click()Form4.ShowForm5.HideEnd SubPrivate Sub Form_Load()Set cn = New ConnectionSet rs = New Recordsetcn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source =" & App.Path & "\\題庫.mdb;Persist Security Info=False"rs.CursorLocation = adUseClientrs.Open "select * from 人文 order by 編號", cn, adOpenDynamic, adLockOptimistic, adCmdTextText1(0).Text = rs("編號")Text1(1).Text = rs("品名")Text1(2).Text = rs("材質")Text1(3).Text = rs("尺寸")Text1(4).Text = rs("安全存量")Text1(5).Text = rs("目前存量")Text1(6).Text = rs("欠補數")End SubPrivate Sub Option1_Click(Index As Integer)sel(t) = IndexEnd Sub我程式要執行時紅色的部份都會出現「使用者自訂形態尚未定義」是為什麼啊???是有什麼東西沒有用到嗎???對了「使用者自訂形態尚未定義」是什麼啊???幫幫我吧謝謝各位

1 Answer

Rating
  • 1 decade ago
    Favorite Answer

    你試著去 "設定引用項目" 裡,選擇 "Microsoft ActiveX Data Objects 2.X Library"

    其中的2.X,通常都選最高的那個版本,如我這裡是2.8...

    Source(s): 自己試的
Still have questions? Get your answers by asking now.