vb提示找不到可安装的ISAM
代码如下PrivateSubjcbutton1_Click()DimconnAsConnection'conn为连接DimsqlAsStringDimrsAsRecord...
代码如下
Private Sub jcbutton1_Click()
Dim conn As Connection 'conn为连接
Dim sql As String
Dim rs As Recordset 'rs 为记录集
If Trim(txtid.Text) = "" Then
MsgBox "输入不能为空", , "提示"
Exit Sub
End If
Set conn = CreateObject("adodb.connection")
conn.Open "Provider =Microsoft.Jet.OLEDB.4.0;Date Source=F:\BaiduYunDownload\VB\学生信息管理\student.mdb;"
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "SELECT * from 学生个人信息 where 学号 like'%" & Trim(txtid.Text) & "%'"
Adodc1.Refresh
End Sub
求大神帮忙 展开
Private Sub jcbutton1_Click()
Dim conn As Connection 'conn为连接
Dim sql As String
Dim rs As Recordset 'rs 为记录集
If Trim(txtid.Text) = "" Then
MsgBox "输入不能为空", , "提示"
Exit Sub
End If
Set conn = CreateObject("adodb.connection")
conn.Open "Provider =Microsoft.Jet.OLEDB.4.0;Date Source=F:\BaiduYunDownload\VB\学生信息管理\student.mdb;"
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "SELECT * from 学生个人信息 where 学号 like'%" & Trim(txtid.Text) & "%'"
Adodc1.Refresh
End Sub
求大神帮忙 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询