📄 czqtzk.frm
字号:
VERSION 5.00
Begin VB.Form czqtzk
Caption = "查找其他帐款"
ClientHeight = 3180
ClientLeft = 3540
ClientTop = 3225
ClientWidth = 4590
Icon = "czqtzk.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3180
ScaleWidth = 4590
Begin VB.Frame Frame1
Height = 3135
Left = 0
TabIndex = 0
Top = 0
Width = 4575
Begin VB.CommandButton Command2
Caption = "取消(&C)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3360
TabIndex = 13
Top = 2520
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "确定(&O)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2040
TabIndex = 12
Top = 2520
Width = 1095
End
Begin VB.Frame Frame5
Caption = "查询条件"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 855
Left = 2040
TabIndex = 10
Top = 240
Width = 2415
Begin VB.ComboBox Combo1
BackColor = &H00FFFFFF&
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 360
ItemData = "czqtzk.frx":0442
Left = 600
List = "czqtzk.frx":044F
TabIndex = 11
Text = "等于"
Top = 360
Width = 1455
End
End
Begin VB.Frame Frame3
Caption = "查询内容"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 975
Left = 2040
TabIndex = 8
Top = 1320
Width = 2415
Begin VB.TextBox Text1
BackColor = &H00FFFFFF&
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 375
Left = 240
TabIndex = 9
Top = 360
Width = 1935
End
End
Begin VB.Frame Frame4
Caption = "查询主题"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 2775
Left = 120
TabIndex = 1
Top = 240
Width = 1815
Begin VB.OptionButton Option4
Caption = "数额"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Left = 240
TabIndex = 7
Top = 1560
Width = 975
End
Begin VB.OptionButton Option3
Caption = "经手人"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 495
Left = 240
TabIndex = 6
Top = 1080
Width = 1095
End
Begin VB.OptionButton Option2
Caption = "录入日期"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Left = 240
TabIndex = 5
Top = 840
Width = 1335
End
Begin VB.OptionButton Option1
Caption = "科目编号"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 375
Index = 0
Left = 240
TabIndex = 4
Top = 360
Width = 1335
End
Begin VB.OptionButton Option1
Caption = "明细"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 495
Index = 1
Left = 240
TabIndex = 3
Top = 2160
Width = 1215
End
Begin VB.OptionButton Option1
Caption = "帐款明目"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 255
Index = 3
Left = 240
TabIndex = 2
Top = 1920
Width = 1335
End
End
End
End
Attribute VB_Name = "czqtzk"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public a As Integer
Private Sub Command1_Click()
Dim oIndex As Integer
If Option1(0).Value = True Then
oIndex = 0
End If
If Option1(1).Value = True Then
oIndex = 1
End If
If Option2.Value = True Then oIndex = 2
If Option1(3).Value = True Then oIndex = 3
If Option4.Value = True Then oIndex = 4
If Option3.Value = True Then oIndex = 5
'查找职员
Select Case oIndex
Case 0
qtkx.Data1.RecordSource = "select * from qtzm where " & "kmbh" & " = '" & Trim(Text1.Text) & "'"
Case 1
qtkx.Data1.RecordSource = "select * from qtzm where " & "mx" & " = '" & Trim(Text1.Text) & "'"
Case 2
If Combo1.Text = "等于" Then
qtkx.Data1.RecordSource = "select * from qtzm where " & "lrrq " & " = #" & Format(CDate(Trim(Text1.Text)), "mmm d yyyy") & "#"
End If
If Combo1.Text = "大于" Then
qtkx.Data1.RecordSource = "select * from qtzm where " & "lrrq" & " > #" & Format(CDate(Trim(Text1.Text)), "mmm d yyyy") & "#"
End If
If Combo1.Text = "小于" Then
qtkx.Data1.RecordSource = "select * from qtzm where " & "lrrq" & " < #" & Format(CDate(Text1.Text), "mmm d yyyy") & "#"
End If
Case 3
qtkx.Data1.RecordSource = "select * from qtzm where " & "zkmm" & " = '" & Trim(Text1.Text) & "'"
Case 4
If Combo1.Text = "等于" Then
qtkx.Data1.RecordSource = "select * from qtzm where " & "se " & " = " & Val(Text1.Text)
End If
If Combo1.Text = "大于" Then
qtkx.Data1.RecordSource = "select * from qtzm where " & "se" & " > " & Val(Text1.Text)
End If
If Combo1.Text = "小于" Then
qtkx.Data1.RecordSource = "select * from qtzm where " & "se" & " < " & Val(Text1.Text)
End If
Case 5
qtkx.Data1.RecordSource = "select * from qtzm where " & "jsr" & " = '" & Trim(Text1.Text) & "'"
End Select
qtkx.Data1.Refresh
qtkx.Show
If qtkx.Data1.Recordset.BOF = True Then
MsgBox "没有找到符合条件的记录。", vbInformation, "提示"
Unload Me
Else
qtkx.Data1.Recordset.MoveFirst
qtkx.Data1.Recordset.MoveLast
l = qtkx.Data1.Recordset.RecordCount
qtkx.StatusBar1.Panels(3).Text = "共找到符合条件的订单 " & l & " 张"
qtkx.Show
End If
Unload Me
End Sub
Private Sub Command2_Click()
qtkx.Data1.RecordSource = "select * from qtzm "
qtkx.Data1.Refresh
qtkx.Show
Unload Me
End Sub
Private Sub Option1_Click(Index As Integer)
If Option1(0).Value = True Then Combo1.Enabled = False
If Option1(1).Value = True Then Combo1.Enabled = False
'If Option1(2).Value = True Then Combo1.Enabled = False
If Option1(3).Value = True Then Combo1.Enabled = False
End Sub
Private Sub Option2_Click()
If Option2.Value = True Then Combo1.Enabled = True
End Sub
Private Sub Option3_Click()
If Option3.Value = True Then Combo1.Enabled = False
End Sub
Private Sub Option4_Click()
If Option4.Value = True Then Combo1.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -