回复 9楼 ZHRXJR
程序代码:
Dim cn12 As New ADODB.Connection Dim rs12 As New ADODB.Recordset cn12.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Aging.mdb " rs12.Open "Select * From 注册 Where 用户='" & Text1.Text & "', cn12, 2, 3" Form3.Label1.Caption = rs!用户 Form3.Label2.Caption = rs!权限 Form3.Label4.Caption = rs!班次 Form3.Label3.Caption = rs!所属 rs12.Close Set rs12 = Nothing cn12.Close Set cn12 = Nothing Exit Sub rs12.Close Set rs12 = Nothing cn12.Close Set cn12 = Nothing
当前通过一个按钮,想实现把查询到的数据显示到LABEL中,代码有问题,请帮忙看看,