求助 未找到方法或数据库成员 编译错误
Private Sub Form_Load()m_lProviderID = -1
Toolbar1.Left = 30
Toolbar1.Top = 30
Toolbar2.Top = 30
CoolBar1.Bands(1).MinHeight = Toolbar1.Height
If p_nLevel >= 2 Then
Toolbar1.Buttons(1).Enabled = False
Toolbar1.Buttons(2).Enabled = False
Toolbar1.Buttons(3).Enabled = False
End If
grdDataGrid.AllowUpdate = False
rsProvider.Open "select 供应商ID,供应商,联系人,Tel,Fax, 地址 from 供应商", p_Connection, adOpenKeyset, adLockOptimistic
'rsProvider.Open "select * from 供应商", p_Connection, adOpenKeyset, adLockOptimistic
Set grdDataGrid.DataSource = rsProvider
If rsProvider.RecordCount = 0 Then
Toolbar1.Buttons(2).Enabled = False
Toolbar1.Buttons(3).Enabled = False
Toolbar1.Buttons(5).Enabled = False
End If
mbDataChanged = False
End Sub