?? frmzongfen.frm
字號(hào):
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=ais"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "ais"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 本期匯總賬簿"
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.CheckBox cbbCheck
Caption = "無發(fā)生金額的不顯示"
Height = 255
Left = 360
TabIndex = 6
Top = 960
Width = 3975
End
Begin VB.CommandButton btnSearch
Caption = "搜索"
Height = 255
Left = 4200
TabIndex = 4
Top = 240
Width = 735
End
Begin VB.TextBox txbOne
Height = 375
Left = 2280
TabIndex = 3
Top = 120
Width = 1575
End
Begin VB.Label lblCount
Height = 255
Left = 120
TabIndex = 8
Top = 240
Width = 1215
End
Begin VB.Label Label2
Caption = "需要查詢歷史賬簿,需要在""期末結(jié)帳""時(shí)將【本期匯總帳簿】表的數(shù)據(jù)倒入歷史,實(shí)例不提供"
Height = 375
Left = 120
TabIndex = 5
Top = 600
Width = 8055
End
Begin VB.Label Label1
Caption = "科目代碼"
Height = 255
Left = 1440
TabIndex = 2
Top = 240
Width = 855
End
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 615
Left = 0
TabIndex = 0
Top = 0
Width = 9840
_ExtentX = 17357
_ExtentY = 1085
ButtonWidth = 1138
ButtonHeight = 926
Appearance = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 5
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "首記錄"
Key = "btnFirst"
ImageIndex = 1
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "上記錄"
Key = "btnBefore"
ImageIndex = 2
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "下記錄"
Key = "btnNext"
ImageIndex = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "尾記錄"
Key = "btnLast"
ImageIndex = 4
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "退出"
Key = "btnExit"
ImageIndex = 10
EndProperty
EndProperty
Begin MSComctlLib.ImageList ImageList1
Left = 7440
Top = 0
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 10
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmZongFen.frx":0457
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmZongFen.frx":0569
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmZongFen.frx":067B
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmZongFen.frx":078D
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmZongFen.frx":089F
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmZongFen.frx":09B1
Key = ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmZongFen.frx":0AC3
Key = ""
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmZongFen.frx":0BD5
Key = ""
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmZongFen.frx":0CE7
Key = ""
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmZongFen.frx":0DF9
Key = ""
EndProperty
EndProperty
End
End
End
Attribute VB_Name = "frmZongFen"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub LoadData()
Dim strFilter As String
If Len(Trim(Me.txbOne.Text)) = 0 Then
If Me.cbbCheck.Value = 1 Then
strFilter = "where 本期借方合計(jì) <>0 or 本期貸方合計(jì)<>0"
End If
Else
strFilter = "where 科目代碼=" + Trim(Me.txbOne.Text)
If Me.cbbCheck.Value = 1 Then
strFilter = strFilter + " and (本期借方合計(jì) <>0 or 本期貸方合計(jì)<>0)"
End If
End If
Dim db As New DataBases
Dim rs As Recordset
Set rs = db.RunSelectSQL("select * from 本期匯總賬簿 " + strFilter)
Set Adodc1.Recordset = rs
lblCount.Caption = "記錄數(shù):" + CStr(rs.RecordCount)
End Sub
Private Sub btnSearch_Click()
LoadData
End Sub
Private Sub cbbCheck_Click()
LoadData
End Sub
Private Sub form_load()
Dim db As New DataBases
Adodc1.ConnectionString = db.sConn
LoadData
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
If StrComp(Button.Key, "btnFirst") = 0 Then
Adodc1.Recordset.MoveFirst
ElseIf StrComp(Button.Key, "btnBefore") = 0 Then
Adodc1.Recordset.MovePrevious
ElseIf StrComp(Button.Key, "btnNext") = 0 Then
Adodc1.Recordset.MoveNext
ElseIf StrComp(Button.Key, "btnLast") = 0 Then
Adodc1.Recordset.MoveLast
ElseIf StrComp(Button.Key, "btnExit") = 0 Then
Hide
End If
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -