?? frmjieyue.frm
字號(hào):
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmjieyue
Caption = "圖書借閱"
ClientHeight = 5805
ClientLeft = 60
ClientTop = 450
ClientWidth = 7275
LinkTopic = "Form2"
ScaleHeight = 5805
ScaleWidth = 7275
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 5400
Top = 4800
Visible = 0 'False
Width = 1335
_ExtentX = 2355
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 1
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\VB+Access源代碼\CH07\book.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\VB+Access源代碼\CH07\book.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "圖書借閱"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.CommandButton Command7
Caption = "退出"
Height = 375
Left = 3960
TabIndex = 19
Top = 4800
Width = 975
End
Begin VB.CommandButton Command6
Caption = "最后一條"
Height = 375
Left = 2520
TabIndex = 18
Top = 4800
Width = 975
End
Begin VB.CommandButton Command5
Caption = "第一條"
Height = 375
Left = 1080
TabIndex = 17
Top = 4800
Width = 975
End
Begin VB.CommandButton Command4
Caption = "上一條"
Height = 375
Left = 5400
TabIndex = 16
Top = 4080
Width = 975
End
Begin VB.CommandButton Command3
Caption = "下一條"
Height = 375
Left = 3960
TabIndex = 15
Top = 4080
Width = 975
End
Begin VB.CommandButton Command2
Caption = "刪除紀(jì)錄"
Height = 375
Left = 2520
TabIndex = 14
Top = 4080
Width = 975
End
Begin VB.CommandButton Command1
Caption = "增加紀(jì)錄"
Height = 375
Left = 1080
TabIndex = 13
Top = 4080
Width = 975
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "frmjieyue.frx":0000
Height = 1335
Left = 480
TabIndex = 12
Top = 2520
Width = 6495
_ExtentX = 11456
_ExtentY = 2355
_Version = 393216
HeadLines = 1
RowHeight = 15
AllowAddNew = -1 'True
AllowDelete = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
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 Column01
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
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin VB.TextBox Text6
DataField = "歸還日期"
DataSource = "Adodc1"
Height = 375
Left = 4920
TabIndex = 11
Top = 1560
Width = 1575
End
Begin VB.TextBox Text5
DataField = "借閱日期"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 10
Top = 1680
Width = 1575
End
Begin VB.TextBox Text4
DataField = "圖書證號(hào)"
DataSource = "Adodc1"
Height = 375
Left = 4920
TabIndex = 9
Top = 840
Width = 1575
End
Begin VB.TextBox Text3
DataField = "姓名"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 8
Top = 960
Width = 1575
End
Begin VB.TextBox Text2
DataField = "書名"
DataSource = "Adodc1"
Height = 375
Left = 4920
TabIndex = 7
Top = 240
Width = 1575
End
Begin VB.TextBox Text1
DataField = "編號(hào)"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 6
Top = 240
Width = 1575
End
Begin VB.Label Label6
Caption = "歸還日期"
Height = 255
Left = 3960
TabIndex = 5
Top = 1680
Width = 1215
End
Begin VB.Label Label5
Caption = "借閱日期"
Height = 495
Left = 720
TabIndex = 4
Top = 1680
Width = 975
End
Begin VB.Label Label4
Caption = "圖書證號(hào)"
Height = 375
Left = 3960
TabIndex = 3
Top = 960
Width = 855
End
Begin VB.Label Label3
Caption = "姓名"
Height = 255
Left = 720
TabIndex = 2
Top = 1080
Width = 855
End
Begin VB.Label Label2
Caption = "書名"
Height = 375
Left = 4080
TabIndex = 1
Top = 360
Width = 975
End
Begin VB.Label Label1
Caption = "編號(hào)"
Height = 375
Left = 720
TabIndex = 0
Top = 360
Width = 735
End
End
Attribute VB_Name = "frmjieyue"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error GoTo adderr
Text1.SetFocus
'Adodc1.Recordset.AddNew
Exit Sub
adderr:
MsgBox Err.Description
End Sub
Private Sub Command2_Click()
On Error GoTo deleteerr
If Adodc1.Recordset.BOF = True Then
MsgBox "沒有記錄,無法刪除!"
Exit Sub
End If
With Adodc1.Recordset
If Not .EOF And Not .BOF Then
If MsgBox("刪除當(dāng)前記錄嗎?", vbYesNo + vbQuestion) = vbYes Then
.Delete
.MoveNext
If .EOF Then .MoveLast
End If
End If
End With
Exit Sub
deleteerr:
MsgBox Err.Description
End Sub
Private Sub Command3_Click()
If Adodc1.Recordset.BOF = True Then
MsgBox "沒有記錄,無法顯示!"
Exit Sub
End If
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
MsgBox "這是最后一條記錄", vbOKCancel + vbQuestion
Adodc1.Recordset.MoveLast
End If
End Sub
Private Sub Command4_Click()
If Adodc1.Recordset.BOF = True Then
MsgBox "沒有記錄,無法顯示!"
Exit Sub
End If
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
MsgBox "這是第一條記錄", vbOKCancel + vbQuestion
Adodc1.Recordset.MoveFirst
End If
End Sub
Private Sub Command5_Click()
If Adodc1.Recordset.BOF = True Then
MsgBox "沒有記錄,無法顯示!"
Exit Sub
End If
If Adodc1.Recordset.EOF Then
MsgBox "紀(jì)錄空", vbOKCancel + vbQuestion
End
Else
Adodc1.Recordset.MoveFirst
End If
Exit Sub
End Sub
Private Sub Command6_Click()
If Adodc1.Recordset.BOF = True Then
MsgBox "沒有記錄,無法顯示!"
Exit Sub
End If
If Adodc1.Recordset.RecordCount = 0 Then
MsgBox "空紀(jì)錄", vbOKCancel + vbQuestion
End
Else
Adodc1.Recordset.MoveLast
End If
End Sub
Private Sub Command7_Click()
MDIForm1.Show
frmjieyue.Hide
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -