📄 ht208.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 1935
ClientLeft = 4035
ClientTop = 4290
ClientWidth = 5070
LinkTopic = "Form1"
PaletteMode = 1 'UseZOrder
ScaleHeight = 1935
ScaleWidth = 5070
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
On Error GoTo ProcError
Dim db As Database
Dim dbName As String
Dim rs As Recordset
Dim s As String
' Get the database name and open the database.
' BiblioPath is a function in READINI.BAS
5 dbName = BiblioPath()
10 Set db = DBEngine.Workspaces(0).OpenDatabase(dbName)
20 Set rs = db.OpenRecordset("No Such Table", dbOpenTable)
30 Set rs = db.OpenRecordset("Titles", dbOpenTable)
40 s = rs![No Such Field]
50 rs.Edit
60 rs![Year Published] = "XYZ"
70 rs.Update
80 End
Exit Sub
ProcError:
MsgBox "Error: " & Err.Number & vbCrLf & _
"Line: " & Erl & vbCrLf & _
Err.Description, vbExclamation
Resume Next
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -