📄 hfrz.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 hfrzz
Caption = "话费入帐"
ClientHeight = 3405
ClientLeft = 60
ClientTop = 450
ClientWidth = 5385
LinkTopic = "Form3"
ScaleHeight = 3405
ScaleWidth = 5385
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "放弃"
Height = 495
Left = 2520
TabIndex = 10
Top = 2880
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 840
TabIndex = 9
Top = 2880
Width = 1335
End
Begin VB.Frame Frame2
Caption = "房客信息"
Height = 2655
Left = 2400
TabIndex = 7
Top = 120
Width = 2895
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "hfrz.frx":0000
Height = 2295
Left = 120
TabIndex = 8
Top = 240
Width = 2655
_ExtentX = 4683
_ExtentY = 4048
_Version = 393216
AllowUpdate = 0 'False
HeadLines = 1
RowHeight = 15
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
End
Begin VB.Frame Frame1
Caption = "话费入帐"
Height = 2655
Left = 120
TabIndex = 0
Top = 120
Width = 2295
Begin VB.TextBox Text1
Height = 375
Left = 960
TabIndex = 1
Text = "Text1"
Top = 1920
Width = 1215
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "Label6"
DataField = "客人姓名"
DataSource = "Adodc1"
Height = 180
Left = 1080
TabIndex = 6
Top = 1200
Width = 540
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "Label5"
DataField = "房号"
DataSource = "Adodc1"
Height = 180
Left = 1080
TabIndex = 5
Top = 480
Width = 540
End
Begin VB.Shape Shape2
Height = 375
Left = 960
Top = 1080
Width = 1215
End
Begin VB.Shape Shape1
Height = 375
Left = 960
Top = 360
Width = 1215
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "话费金额:"
Height = 180
Left = 120
TabIndex = 4
Top = 1920
Width = 810
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "姓名:"
Height = 180
Left = 120
TabIndex = 3
Top = 1080
Width = 450
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "房号:"
Height = 180
Left = 120
TabIndex = 2
Top = 360
Width = 450
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 5400
Top = 480
Width = 1455
_ExtentX = 2566
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
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=KFGL.MDB;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=KFGL.MDB;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "djb"
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.Label Label8
Caption = "Label8"
Height = 375
Left = 5640
TabIndex = 12
Top = 2040
Width = 1335
End
Begin VB.Label Label7
Caption = "Label7"
DataField = "话费"
DataSource = "Adodc1"
Height = 375
Left = 5640
TabIndex = 11
Top = 1320
Width = 1215
End
End
Attribute VB_Name = "hfrzz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox "请输入话费的金额!", vbOKOnly + vbExclamation, "错误"
Exit Sub
End If
Label8.Caption = Label7.Caption + Val(Text1.Text)
Dim rs_bookstyle As New ADODB.Recordset
Dim conn As String
conn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=kfgl.mdb;Persist Security Info=False"
Dim sql As String
sql = "select * from djb where 房号='" & Label5.Caption & "'"
rs_bookstyle.Open sql, conn, adOpenKeyset, adLockPessimistic
rs_bookstyle.Fields(17) = Trim(Label8.Caption)
rs_bookstyle.Update
rs_bookstyle.Close
MsgBox "话费入帐成功!", vbOKOnly, ""
Text1.Text = ""
Adodc1.Refresh
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Activate()
Adodc1.Refresh
End Sub
Private Sub Form_Load()
Text1.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -