|
Sub find_sub(frm As Form)
Dim rs As New ADODB.Recordset
frm.序号 = frm.OpenArgs
With rs
.Open "SELECT * FROM " & sTbl & " WHERE 序号=" & frm.序号, CurrentProject.Connection
If .EOF And .BOF Then
MsgBox "没有找到 序号 为" & frm.序号 & " 值的记录, 请重输 序号", vbExclamation + vbOKOnly, "查找"
序号.SetFocus
Else
'赋值
Call CopyValue(frm, rs)
'格式化
Call SetButt("查看", frm)
End If
End With
End Sub
停在这句上.Open "SELECT * FROM " & sTbl & " WHERE 序号=" & frm.序号, CurrentProject.Connection
提示
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|