?? tushudengjizhang.dob
字號:
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column06
DataField = "資料名稱"
Caption = "資料名稱"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column07
DataField = "編制單位"
Caption = "編制單位"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column08
DataField = "編制日期"
Caption = "編制日期"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column09
DataField = "來源"
Caption = "來源"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column10
DataField = "份數"
Caption = "份數"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column11
DataField = "頁數"
Caption = "頁數"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column12
DataField = "單價"
Caption = "單價"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column13
DataField = "備注"
Caption = "備注"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column14
DataField = "內容簡介"
Caption = "內容簡介"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1094.74
EndProperty
BeginProperty Column01
ColumnWidth = 2085.166
EndProperty
BeginProperty Column02
ColumnWidth = 2085.166
EndProperty
BeginProperty Column03
ColumnWidth = 2085.166
EndProperty
BeginProperty Column04
ColumnWidth = 2085.166
EndProperty
BeginProperty Column05
ColumnWidth = 2085.166
EndProperty
BeginProperty Column06
ColumnWidth = 2085.166
EndProperty
BeginProperty Column07
ColumnWidth = 2085.166
EndProperty
BeginProperty Column08
ColumnWidth = 2085.166
EndProperty
BeginProperty Column09
ColumnWidth = 2085.166
EndProperty
BeginProperty Column10
ColumnWidth = 1094.74
EndProperty
BeginProperty Column11
ColumnWidth = 1094.74
EndProperty
BeginProperty Column12
ColumnWidth = 2085.166
EndProperty
BeginProperty Column13
ColumnWidth = 2085.166
EndProperty
BeginProperty Column14
ColumnWidth = 2085.166
EndProperty
EndProperty
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "日期:"
Height = 180
Index = 1
Left = 720
TabIndex = 36
Top = 600
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "總號:"
Height = 180
Index = 2
Left = 720
TabIndex = 35
Top = 1020
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "分類號:"
Height = 180
Index = 3
Left = 2940
TabIndex = 34
Top = 1020
Width = 630
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "文別:"
Height = 180
Index = 4
Left = 5340
TabIndex = 33
Top = 1020
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "密別:"
Height = 180
Index = 5
Left = 7560
TabIndex = 32
Top = 1020
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "資料名稱:"
Height = 180
Index = 6
Left = 360
TabIndex = 31
Top = 1440
Width = 810
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "編制單位:"
Height = 180
Index = 7
Left = 360
TabIndex = 30
Top = 1860
Width = 810
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "編制日期:"
Height = 180
Index = 8
Left = 7200
TabIndex = 29
Top = 1860
Width = 810
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "來源:"
Height = 180
Index = 9
Left = 720
TabIndex = 28
Top = 2280
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "份數:"
Height = 180
Index = 10
Left = 660
TabIndex = 27
Top = 5160
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "頁數:"
Height = 180
Index = 11
Left = 3120
TabIndex = 26
Top = 5160
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "單價:"
Height = 180
Index = 12
Left = 5340
TabIndex = 25
Top = 5160
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "備注:"
Height = 180
Index = 13
Left = 660
TabIndex = 24
Top = 5580
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "內容簡介:"
Height = 180
Index = 14
Left = 300
TabIndex = 23
Top = 2685
Width = 810
End
End
End
Attribute VB_Name = "TuShuDengJiZhang"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Private Sub datPrimaryRS_Error(ByVal ErrorNumber As Long, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, fCancelDisplay As Boolean)
'錯誤處理程序代碼置于此處
'想要忽略錯誤,注釋掉下一行
'想要捕獲它們,在此添加代碼以處理它們
MsgBox "Data error event hit err:" & Description
End Sub
Private Sub datPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
'為這個 recordset 顯示當前記錄位置
datPrimaryRS.Caption = "Record: " & CStr(datPrimaryRS.Recordset.AbsolutePosition)
End Sub
Private Sub datPrimaryRS_WillChangeRecord(ByVal adReason As ADODB.EventReasonEnum, ByVal cRecords As Long, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
'驗證代碼置于此處
'下列動作發生時該事件被調用
Dim bCancel As Boolean
Select Case adReason
Case adRsnAddNew
Case adRsnClose
Case adRsnDelete
Case adRsnFirstChange
Case adRsnMove
Case adRsnRequery
Case adRsnResynch
Case adRsnUndoAddNew
Case adRsnUndoDelete
Case adRsnUndoUpdate
Case adRsnUpdate
End Select
If bCancel Then adStatus = adStatusCancel
End Sub
Private Sub cmdAdd_Click()
On Error GoTo AddErr
datPrimaryRS.Recordset.AddNew
Exit Sub
AddErr:
MsgBox Err.Description
End Sub
Private Sub cmdDelete_Click()
On Error GoTo DeleteErr
With datPrimaryRS.Recordset
.Delete
.MoveNext
If .EOF Then .MoveLast
End With
Exit Sub
DeleteErr:
MsgBox Err.Description
End Sub
Private Sub cmdRefresh_Click()
'只有多用戶應用程序需要
On Error GoTo RefreshErr
datPrimaryRS.Refresh
Exit Sub
RefreshErr:
MsgBox Err.Description
End Sub
Private Sub cmdUpdate_Click()
On Error GoTo UpdateErr
datPrimaryRS.Recordset.UpdateBatch adAffectAll
Exit Sub
UpdateErr:
MsgBox Err.Description
End Sub
Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub UserDocument_Initialize()
With datPrimaryRS
.ConnectionString = pConn
.RecordSource = "select 序號,日期,總號,分類號,文別,密別,資料名稱,編制單位,編制日期,來源,份數,頁數,單價,備注,內容簡介 from 圖書資料登記帳"
.Refresh
End With
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -