📄 frm_khtkcx.frm
字号:
EndProperty
BeginProperty Column04
ColumnWidth = 1365.165
EndProperty
BeginProperty Column05
ColumnWidth = 1365.165
EndProperty
BeginProperty Column06
ColumnWidth = 2085.166
EndProperty
BeginProperty Column07
ColumnWidth = 2085.166
EndProperty
BeginProperty Column08
ColumnWidth = 2085.166
EndProperty
BeginProperty Column09
ColumnWidth = 2085.166
EndProperty
BeginProperty Column10
ColumnWidth = 1365.165
EndProperty
BeginProperty Column11
ColumnWidth = 1365.165
EndProperty
BeginProperty Column12
ColumnWidth = 1365.165
EndProperty
BeginProperty Column13
ColumnWidth = 2085.166
EndProperty
EndProperty
End
Begin VB.Frame Frame1
Caption = "楼盘楼房房屋查询"
Height = 735
Left = 0
TabIndex = 0
Top = 120
Width = 10935
Begin VB.ComboBox Combo1
Height = 315
ItemData = "frm_KHTKCX.frx":0015
Left = 1440
List = "frm_KHTKCX.frx":003D
Style = 2 'Dropdown List
TabIndex = 7
Top = 240
Width = 2055
End
Begin VB.ComboBox Combo2
Height = 315
ItemData = "frm_KHTKCX.frx":00AF
Left = 3600
List = "frm_KHTKCX.frx":00C5
Style = 2 'Dropdown List
TabIndex = 6
Top = 240
Width = 855
End
Begin VB.TextBox Text1
Height = 300
Left = 4560
TabIndex = 5
Top = 240
Width = 2295
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 350
Left = 7080
TabIndex = 4
Top = 240
Width = 855
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 350
Left = 8040
TabIndex = 3
Top = 240
Width = 855
End
Begin VB.CommandButton Command3
Caption = "关闭"
Height = 350
Left = 9960
TabIndex = 2
Top = 240
Width = 855
End
Begin VB.CommandButton Command4
Caption = "刷新"
Height = 350
Left = 9000
TabIndex = 1
Top = 240
Width = 855
End
Begin VB.Label Label1
Caption = "查询条件"
Height = 255
Left = 360
TabIndex = 8
Top = 340
Width = 1095
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 1800
Top = 6360
Width = 2775
_ExtentX = 4895
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=ljm"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=ljm"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from Table_KHTK"
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_KHTKCX"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i, a
Private Sub Combo1_Click()
Combo2.SetFocus
End Sub
Private Sub Combo2_Click()
If Combo2.Text = " =" Then
i = 0
ElseIf Combo2.Text = " <" Then
i = 1
ElseIf Combo2.Text = " <=" Then
i = 2
ElseIf Combo2.Text = " >" Then
i = 3
ElseIf Combo2.Text = " >=" Then
i = 4
ElseIf Combo2.Text = " Like" Then
i = 5
Else
End If
Text1.SetFocus
End Sub
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox "输入不能为空!", 32, "房地产销售管理系统"
Else
If Combo1.Text = "退款单号" Or Combo1.Text = "客户编号" Or Combo1.Text = "退款金额" Then
If Not IsNumeric(Text1.Text) Then
Text1.Text = ""
Text1.SetFocus
Exit Sub
Else
End If
Else
End If
a = Text1.Text
If i = 0 Then
Adodc1.RecordSource = "select * from Table_KHTK where " + Combo1.Text + "='" + a + "'"
Adodc1.Refresh
ElseIf i = 1 Then
Adodc1.RecordSource = "select * from Table_KHTK where " + Combo1.Text + "<'" + a + "'"
Adodc1.Refresh
ElseIf i = 2 Then
Adodc1.RecordSource = "select * from Table_KHTK where " + Combo1.Text + "<='" + a + "'"
Adodc1.Refresh
ElseIf i = 3 Then
Adodc1.RecordSource = "select * from Table_KHTK where " + Combo1.Text + ">'" + a + "'"
Adodc1.Refresh
ElseIf i = 4 Then
Adodc1.RecordSource = "select * from Table_KHTK where " + Combo1.Text + ">='" + a + "'"
Adodc1.Refresh
ElseIf i = 5 Then
Adodc1.RecordSource = "select * from Table_KHTK where " + Combo1.Text + " like '%" + a + "%'"
Adodc1.Refresh
Else
End If
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Combo1.SetFocus
End Sub
Private Sub Command3_Click()
Unload Me
frm_KHTKDGL.Show
End Sub
Private Sub Command4_Click()
Adodc1.RecordSource = "select * from Table_KHTK"
Adodc1.Refresh
End Sub
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Call Command1_Click
Else
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -