VB 编程中提示FROM语法错误,不能fresh
很简单个程序,如下PrivateSubForm_Load()DimiAsIntegerAdodc1.RecordSource="select*from客户资料"Adodc...
很简单个程序,如下
Private Sub Form_Load()
Dim i As Integer
Adodc1.RecordSource = "select * from 客户资料"
Adodc1.Refresh
cmbField.Clear
For i = 0 To Adodc1.Recordset.Fields.Count - 1
cmbField.AddItem Adodc1.Recordset.Fields(i).Name
Next i
cmbField.Text = cmbField.List(0)
End Sub
连接到数据库了,也设置属性了啊! 展开
Private Sub Form_Load()
Dim i As Integer
Adodc1.RecordSource = "select * from 客户资料"
Adodc1.Refresh
cmbField.Clear
For i = 0 To Adodc1.Recordset.Fields.Count - 1
cmbField.AddItem Adodc1.Recordset.Fields(i).Name
Next i
cmbField.Text = cmbField.List(0)
End Sub
连接到数据库了,也设置属性了啊! 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询