📄 xinxichaxunform.frm
字号:
VERSION 5.00
Begin VB.Form xinxichaxunform
Caption = "信息查询"
ClientHeight = 7095
ClientLeft = 4110
ClientTop = 3075
ClientWidth = 9105
LinkTopic = "Form1"
ScaleHeight = 7095
ScaleWidth = 9105
Begin VB.PictureBox Picture1
Height = 5175
Left = 6360
ScaleHeight = 5115
ScaleWidth = 2355
TabIndex = 29
Top = 720
Width = 2415
End
Begin VB.CommandButton Command3
Caption = "查看备注"
Height = 495
Left = 6360
TabIndex = 26
Top = 6120
Width = 2655
End
Begin VB.ComboBox Combo1
DataMember = "0"
Height = 5040
ItemData = "xinXiChaXunForm.frx":0000
Left = 360
List = "xinXiChaXunForm.frx":0002
Style = 1 'Simple Combo
TabIndex = 21
Text = "Combo1"
Top = 720
Width = 1935
End
Begin VB.CommandButton Command2
Caption = "结束查询"
Height = 495
Left = 3600
TabIndex = 1
Top = 6600
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "开始查询"
Height = 495
Left = 360
TabIndex = 0
Top = 5880
Width = 1935
End
Begin VB.Label Label25
Caption = "Label25"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3720
TabIndex = 28
Top = 6000
Width = 1575
End
Begin VB.Label Label22
Caption = "账户备注"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 6840
TabIndex = 27
Top = 360
Width = 1815
End
Begin VB.Label Label24
Height = 255
Left = 3480
TabIndex = 25
Top = 5400
Width = 2535
End
Begin VB.Label Label23
Caption = "开户操作员"
Height = 255
Left = 2400
TabIndex = 24
Top = 5400
Width = 975
End
Begin VB.Label Label21
Caption = "个"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5520
TabIndex = 23
Top = 6000
Width = 375
End
Begin VB.Label Label20
Caption = "总客户数"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2400
TabIndex = 22
Top = 6000
Width = 1935
End
Begin VB.Label Label1
Caption = "客户姓名"
Height = 255
Left = 2400
TabIndex = 20
Top = 720
Width = 735
End
Begin VB.Label Label2
Caption = "客户性别"
Height = 255
Left = 2400
TabIndex = 19
Top = 1245
Width = 735
End
Begin VB.Label Label3
Caption = "身份证号"
Height = 255
Left = 2400
TabIndex = 18
Top = 1770
Width = 735
End
Begin VB.Label Label4
Caption = "家庭住址"
Height = 255
Left = 2400
TabIndex = 17
Top = 2295
Width = 735
End
Begin VB.Label Label5
Caption = "联系电话"
Height = 255
Left = 2400
TabIndex = 16
Top = 2820
Width = 735
End
Begin VB.Label Label6
Caption = "开户日期"
Height = 255
Left = 2400
TabIndex = 15
Top = 3345
Width = 735
End
Begin VB.Label Label7
Caption = "活期余额"
Height = 255
Left = 2400
TabIndex = 14
Top = 3870
Width = 735
End
Begin VB.Label Label8
Caption = "定期余额"
Height = 255
Left = 2400
TabIndex = 13
Top = 4395
Width = 735
End
Begin VB.Label Label9
Caption = "存款总额"
Height = 255
Left = 2400
TabIndex = 12
Top = 4920
Width = 735
End
Begin VB.Label Label10
Height = 255
Left = 3480
TabIndex = 11
Top = 720
Width = 2535
End
Begin VB.Label Label11
Height = 255
Left = 3480
TabIndex = 10
Top = 1245
Width = 2535
End
Begin VB.Label Label12
Height = 255
Left = 3480
TabIndex = 9
Top = 1770
Width = 2535
End
Begin VB.Label Label13
Height = 255
Left = 3480
TabIndex = 8
Top = 2295
Width = 2535
End
Begin VB.Label Label14
Height = 255
Left = 3480
TabIndex = 7
Top = 2820
Width = 2535
End
Begin VB.Label Label15
Height = 255
Left = 3480
TabIndex = 6
Top = 3345
Width = 2535
End
Begin VB.Label Label16
Height = 255
Left = 3480
TabIndex = 5
Top = 3870
Width = 2535
End
Begin VB.Label Label17
Height = 255
Left = 3480
TabIndex = 4
Top = 4395
Width = 2535
End
Begin VB.Label Label18
Height = 255
Left = 3480
TabIndex = 3
Top = 4920
Width = 2535
End
Begin VB.Label Label19
Caption = "帐号查询"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 720
TabIndex = 2
Top = 240
Width = 1335
End
End
Attribute VB_Name = "xinxichaxunform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'++++++++++++++++++++查询信息+++++++++++++++++++++++++
Private Sub Command1_Click()
Dim SQLtext As String
Dim cnnADO As New ADODB.Connection
Dim recADO As New ADODB.Recordset
Dim cnnADO1 As New ADODB.Connection
Dim recADO1 As New ADODB.Recordset
cnnADO.Open cnnString3
SQLtext = " select * From 客户基本信息 Where 帐号 = '" & Combo1.Text & "'"
recADO.Open SQLtext, cnnADO, adOpenStatic, adLockOptimistic
Label10.Caption = recADO.Fields(0)
Label11.Caption = recADO.Fields(1)
Label12.Caption = recADO.Fields(2)
Label13.Caption = recADO.Fields(3)
Label14.Caption = recADO.Fields(4)
If Len(Label10.Caption) = 0 Then
MsgBox "无此用户,请重新输入!", 48, "账户查询"
Exit Sub
End If
recADO.Close
cnnADO1.Open cnnString3
SQLtext = "select * From 帐户信息 Where 帐号 = '" & Combo1.Text & "'"
recADO1.Open SQLtext, cnnADO1, adOpenStatic, adLockOptimistic
Label15.Caption = recADO1.Fields(1)
Label16.Caption = recADO1.Fields(4)
Label17.Caption = recADO1.Fields(5)
Label18.Caption = recADO1.Fields(6)
If Len(recADO1.Fields(8)) <> 0 Then
Label24.Caption = recADO1.Fields(8)
Else
Label24.Caption = "无人开户,非法用户"
MsgBox "非法用户,请重新选择并核对后删除此用户!", 48, "账户问题"
Exit Sub
End If
recADO1.Close
End Sub
'++++++++++++++++++判断备注信息++++++++++++++++++++
Private Sub Command3_Click()
Picture1.Cls
Picture1.Print "该帐户存在的问题:"
Picture1.Print String(20, "*")
If Len(Combo1.Text) = 0 Then
Picture1.Print "请输入或选择用户!"
Else
If Label24.Caption = "无人开户,非法用户" Then
Picture1.Print "用户"; Label10.Caption; "存在问题,没有"
Picture1.Print " 人开户情况下进入系统属于"
Picture1.Print "非法用户, 需立即冻结该用 "
Picture1.Print "户并进行核对!;"
Else
If Len(Label12.Caption) = 0 Then
Picture1.Print "属于黑户,没有身份证号"
Else
Picture1.Print "该用户符合法定程序"
End If
End If
End If
End Sub
'++++++++++++++++++加载窗体+++++++++++++++++++++
Private Sub Form_Load()
Dim SQLtext As String
Dim cnnADO As New ADODB.Connection
Dim recADO As New ADODB.Recordset
Dim i As Integer
cnnADO.Open cnnString3
SQLtext = "select * from 客户基本信息"
recADO.Open SQLtext, cnnADO, adOpenStatic, adLockOptimistic
recADO.MoveFirst
Do While Not recADO.EOF
Combo1.List(i) = recADO.Fields(5)
recADO.MoveNext
i = i + 1
Loop
recADO.Close
Combo1.Text = Combo1.List(0)
Label25.Caption = i
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -