?? form1.frm
字號:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form form1
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 5670
ClientLeft = 0
ClientTop = 0
ClientWidth = 9420
LinkTopic = "Form1"
ScaleHeight = 5670
ScaleWidth = 9420
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.OptionButton Option3
Caption = "報刊名稱"
Height = 210
Left = 2910
TabIndex = 6
Top = 5190
Width = 1140
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 300
Left = 7500
TabIndex = 5
Top = 5085
Width = 1380
End
Begin VB.CommandButton Command1
Caption = "匯總"
Height = 300
Left = 6000
TabIndex = 3
Top = 5100
Width = 1365
End
Begin VB.OptionButton Option2
Caption = "發行站點"
Height = 285
Left = 1725
TabIndex = 2
Top = 5130
Width = 1110
End
Begin VB.OptionButton Option1
Caption = "全部數據"
Height = 210
Left = 540
TabIndex = 1
Top = 5160
Value = -1 'True
Width = 1140
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "C:\00編程技巧\期刊匯總\msdb.mdb"
DefaultCursorType= 0 '缺省游標
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 195
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "bkdd"
Top = 105
Visible = 0 'False
Width = 1305
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "form1.frx":0000
Height = 4140
Left = 330
OleObjectBlob = "form1.frx":0014
TabIndex = 0
Top = 810
Width = 8700
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "報刊訂單匯總"
BeginProperty Font
Name = "宋體"
Size = 21.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 585
Left = 3075
TabIndex = 4
Top = 210
Width = 2685
End
End
Attribute VB_Name = "form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Data1.DatabaseName = App.Path & "\msdb.mdb"
End Sub
Private Sub Command1_Click()
If Option1.Value = True Then
Data1.RecordSource = "select * from bkdd "
Data1.Refresh
DBGrid1.Refresh
End If
If Option2.Value = True Then
Data1.RecordSource = "select zd as 站名,sum(zje)as 總金額,SUM(ZFS)AS 總份數 from bkdd group by zd"
Data1.Refresh
DBGrid1.Refresh
End If
If Option3.Value = True Then
Data1.RecordSource = "select km as 刊名,sum(zje)as 總金額,SUM(ZFS)AS 總份數 from bkdd group by km"
Data1.Refresh
DBGrid1.Refresh
End If
End Sub
Private Sub Command2_Click()
End
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -