?? ls_f.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 ls_f
BorderStyle = 1 'Fixed Single
Caption = "流水賬---計算中心上機收費系統"
ClientHeight = 6600
ClientLeft = 45
ClientTop = 330
ClientWidth = 9345
Icon = "ls_f.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6600
ScaleWidth = 9345
StartUpPosition = 1 '所有者中心
Begin VB.TextBox Text1
Height = 375
Left = 5040
TabIndex = 4
Top = 240
Width = 1695
End
Begin VB.CommandButton Command3
Caption = "流水賬整理"
Height = 375
Left = 1920
TabIndex = 3
Top = 240
Width = 1695
End
Begin VB.CommandButton Command2
Caption = "有條件查詢"
Height = 375
Left = 6840
TabIndex = 2
Top = 240
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "無條件查詢"
Height = 375
Left = 240
TabIndex = 1
Top = 240
Width = 1695
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "ls_f.frx":030A
Height = 5055
Left = 120
TabIndex = 0
Top = 840
Width = 9015
_ExtentX = 15901
_ExtentY = 8916
_Version = 393216
AllowUpdate = 0 'False
HeadLines = 1
RowHeight = 15
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
ColumnCount = 6
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
BeginProperty Column05
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 = 1035.213
EndProperty
BeginProperty Column01
ColumnWidth = 1094.74
EndProperty
BeginProperty Column02
ColumnWidth = 2204.788
EndProperty
BeginProperty Column03
ColumnWidth = 1934.929
EndProperty
BeginProperty Column04
ColumnWidth = 945.071
EndProperty
BeginProperty Column05
ColumnWidth = 884.976
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Align = 2 'Align Bottom
Height = 330
Left = 0
Top = 6270
Width = 9345
_ExtentX = 16484
_ExtentY = 582
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 = 0
BackColor = -2147483643
ForeColor = 255
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=nccc.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=nccc.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = $"ls_f.frx":031F
Caption = "計算中心計費系統"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "卡號:"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 4080
TabIndex = 5
Top = 240
Width = 660
End
End
Attribute VB_Name = "ls_f"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim conn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Private Sub Command1_Click()
sql = "select 流水賬.卡號,基本表.姓名,流水賬.注冊時間,流水賬.注銷時間,基本表.班級,流水賬.金額 from 流水賬,基本表 where 流水賬.卡號=基本表.卡號 and 流水賬.金額 <> '0' order by 流水賬.注冊時間"
Adodc1.RecordSource = sql
Adodc1.Refresh
End Sub
Private Sub Command2_Click()
If Len(Text1.Text) = 0 Then Exit Sub
Text1.Text = Replace(Text1.Text, "'", "")
Text1.Text = Replace(Text1.Text, Chr(34), "")
sql = "select 流水賬.卡號,基本表.姓名,流水賬.注冊時間,流水賬.注銷時間,基本表.班級,流水賬.金額 from 流水賬,基本表 where 流水賬.卡號=基本表.卡號 and 流水賬.卡號 ='" & Text1.Text & "' and 流水賬.金額 <> '0' order by 流水賬.注冊時間"
Adodc1.RecordSource = sql
Adodc1.Refresh
End Sub
Private Sub Command3_Click()
sql = "select 流水賬.卡號,基本表.姓名,流水賬.注冊時間,流水賬.注銷時間,基本表.班級,流水賬.金額 from 流水賬,基本表 where 流水賬.卡號=基本表.卡號 and 流水賬.金額 = '0' order by 流水賬.注冊時間"
Adodc1.RecordSource = sql
Adodc1.Refresh
temp = MsgBox("整理后將會是你的機器運行起來更快,是否開始整理?", vbOKCancel)
If temp = vbOK Then
sql = "delete * from 流水賬 where 金額='0'"
conn.Execute sql
MsgBox "整理完成!"
sql = "select 流水賬.卡號,基本表.姓名,流水賬.注冊時間,流水賬.注銷時間,基本表.班級,流水賬.金額 from 流水賬,基本表 where 流水賬.卡號=基本表.卡號 and 流水賬.金額 = '0' order by 流水賬.注冊時間"
Adodc1.RecordSource = sql
Adodc1.Refresh
Else
End If
End Sub
Private Sub Form_Load()
conn.Open connstr
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set rs = Nothing
Set conn = Nothing
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -