📄 frm_infocheck.frm
字号:
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 Frm_InfoCheck
ClientHeight = 5655
ClientLeft = 3705
ClientTop = 2925
ClientWidth = 8250
LinkTopic = "Form1"
ScaleHeight = 5655
ScaleWidth = 8250
Begin VB.CommandButton Cmd_Back
Caption = "返回主界面"
Height = 495
Left = 2040
TabIndex = 1
Top = 5040
Width = 1695
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "Frm_InfoCheck.frx":0000
Height = 4575
Left = 120
TabIndex = 0
Top = 360
Width = 7935
_ExtentX = 13996
_ExtentY = 8070
_Version = 393216
AllowUpdate = -1 'True
Appearance = 0
HeadLines = 1
RowHeight = 15
RowDividerStyle = 3
FormatLocked = -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
Caption = "借书情况"
ColumnCount = 5
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
BeginProperty Column02
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 Column03
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 Column04
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
BeginProperty Column02
EndProperty
BeginProperty Column03
EndProperty
BeginProperty Column04
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 615
Left = 3120
Top = 4080
Width = 1575
_ExtentX = 2778
_ExtentY = 1085
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
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
End
Attribute VB_Name = "Frm_InfoCheck"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Back_Click()
Unload Me
Frm_Mainpage.Show
End Sub
Private Sub Form_Load()
Dim SQL As String, mpath As String
SQL = "select 借书记录.书名, 借书记录.索书号,借书记录.借出日期,借书记录.还书日期,借书记录.借书证号"
SQL = SQL + " from 借书记录 where 借书记录.借书证号='" & UserName & "'"
Set AdoGeneral = Adodc1
mpath = App.Path
If (Right(mpath, 1) <> " \") Then mpath = mpath + "\"
mlink = "provider=microsoft.jet.oledb.3.51;data source=" + mpath + "book.mdb"
AdoGeneral.ConnectionString = mlink
AdoGeneral.CommandType = adCmdUnknown
AdoGeneral.RecordSource = SQL
AdoGeneral.Refresh
If AdoGeneral.Recordset.RecordCount = 0 Then
MsgBox "你没有借书!", vbInformation, "信息"
Else
AdoGeneral.Recordset.Update
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -