191
Private Sub Form_Load()
Dim sql As String, msg As String
On Error GoTo error
sql = "select *from 图书类别"
Set rstBookStyle = ExeRecordset(sql, msg)
cmddel .Enabled = False
cmdsave .Enabled = False
DataGrid1 .AllowAddNew = False
DataGrid1.AllowDelete = False
DataGrid1 .AllowUpdate = False
Set DataGrid1.DataSource = rstBookStyle
DataGrid1.Caption = "图书类别(" + msg + ")"
Exit Sub
error:
MsgBox Err.Description
End Sub
Private Sub Form_Load()
Dim sql As String, msg As String
On Error GoTo error
sql = "select *from 图书类别"
Set rstBookStyle = ExeRecordset(sql, msg)
cmddel .Enabled = False
cmdsave .Enabled = False
DataGrid1 .AllowAddNew = False
DataGrid1.AllowDelete = False
DataGrid1 .AllowUpdate = False
Set DataGrid1.DataSource = rstBookStyle
DataGrid1.Caption = "图书类别(" + msg + ")"
Exit Sub
error:
MsgBox Err.Description
End Sub










