?? findpi.frm
字號:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form Findpi
Caption = "Find pi"
ClientHeight = 1725
ClientLeft = 60
ClientTop = 345
ClientWidth = 6750
LinkTopic = "Form2"
ScaleHeight = 1725
ScaleWidth = 6750
StartUpPosition = 3 '窗口缺省
Begin MSComCtl2.DTPicker DTPicker1
Height = 375
Left = 2520
TabIndex = 4
Top = 240
Width = 1455
_ExtentX = 2566
_ExtentY = 661
_Version = 393216
Format = 23789569
CurrentDate = 37763
End
Begin MSComctlLib.Toolbar Toolbar1
Height = 570
Left = 3480
TabIndex = 3
Top = 840
Width = 3255
_ExtentX = 5741
_ExtentY = 1005
ButtonWidth = 1984
ButtonHeight = 1005
Style = 1
TextAlignment = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 3
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "Find"
Key = "Find"
ImageIndex = 1
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "Quit"
Key = "Quit"
ImageIndex = 2
EndProperty
EndProperty
Begin MSComctlLib.ImageList ImageList1
Left = 2400
Top = 0
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 2
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Findpi.frx":0000
Key = "Find"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Findpi.frx":110A
Key = "Quit"
EndProperty
EndProperty
End
End
Begin MSComCtl2.DTPicker DTPicker2
Height = 375
Left = 4680
TabIndex = 5
Top = 240
Width = 1575
_ExtentX = 2778
_ExtentY = 661
_Version = 393216
Format = 23789569
CurrentDate = 37763
End
Begin VB.Label Label3
Caption = "To:"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4200
TabIndex = 2
Top = 240
Width = 495
End
Begin VB.Label Label2
Caption = "From:"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1800
TabIndex = 1
Top = 240
Width = 735
End
Begin VB.Label Label1
Caption = "InputDate:"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 360
TabIndex = 0
Top = 240
Width = 1335
End
End
Attribute VB_Name = "Findpi"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
Case "Find"
Dim db As ADODB.Connection
Set db = New ADODB.Connection
db.Open "Provider=SQLOLEDB.1;Persist Security Info=False;" & _
"User ID=sa;Initial Catalog=InventoryDB;Data Source=(local)"
frmpinput.Adodc_pic.RecordSource = "select * from PIC where InputDate between '" & Trim(DTPicker1.Value) & "' and '" & Trim(DTPicker2.Value) & "'"
frmpinput.Adodc_pid.RecordSource = "select * from PID where InputDate between '" & Trim(DTPicker1.Value) & "' and '" & Trim(DTPicker2.Value) & "'"
frmpinput.Adodc_pic.Refresh
frmpinput.Adodc_pid.Refresh
db.Close
Case "Quit"
Unload Me
End Select
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -