📄 sale_op.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form sale_op
BackColor = &H00400000&
BorderStyle = 1 'Fixed Single
Caption = "Search Criteria..."
ClientHeight = 2085
ClientLeft = 45
ClientTop = 435
ClientWidth = 4605
ControlBox = 0 'False
LinkTopic = "Form7"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2085
ScaleWidth = 4605
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command1
Height = 465
Left = 1935
Picture = "sale_op.frx":0000
Style = 1 'Graphical
TabIndex = 5
Top = 1515
Width = 630
End
Begin VB.TextBox Text1
DataField = "Ac_no"
DataSource = "Adodc1"
Height = 285
Left = 2970
TabIndex = 2
Text = "Text1"
Top = 3390
Width = 210
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 960
Top = 3435
Width = 1860
_ExtentX = 3281
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=relience"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "relience"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from accounts"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Frame Frame2
BackColor = &H00E0E0E0&
BorderStyle = 0 'None
Caption = "Frame2"
Height = 1290
Left = 0
TabIndex = 4
Top = 0
Width = 4605
Begin MSComCtl2.DTPicker DTPicker1
Height = 315
Left = 1380
TabIndex = 7
Top = 345
Width = 2385
_ExtentX = 4207
_ExtentY = 556
_Version = 393216
Format = 19791873
CurrentDate = 38467
End
Begin MSComCtl2.DTPicker DTPicker2
Height = 315
Left = 1365
TabIndex = 8
Top = 780
Width = 2385
_ExtentX = 4207
_ExtentY = 556
_Version = 393216
Format = 19791873
CurrentDate = 38467
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "To Date"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 225
TabIndex = 9
Top = 825
Width = 1320
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "From Date"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 240
TabIndex = 6
Top = 345
Width = 1320
End
End
Begin VB.Frame Frame1
BackColor = &H00E0E0E0&
BorderStyle = 0 'None
Caption = "Frame1"
Height = 1395
Left = 0
TabIndex = 0
Top = -15
Visible = 0 'False
Width = 4605
Begin VB.ComboBox Combo1
Height = 315
Left = 1485
TabIndex = 1
Text = "Combo1"
Top = 225
Width = 2475
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Accounts"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 495
TabIndex = 3
Top = 270
Width = 1320
End
End
End
Attribute VB_Name = "sale_op"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Me.Tag = "ac" Then
ac_name = Combo1.Text
MAIN.Show
Unload Me
Call MAIN.sd_Click
End If
If Me.Tag = "sd" Then
sp_date1 = Str(DTPicker1.Value)
sp_date2 = Str(DTPicker2.Value)
MAIN.Show
Unload Me
Call MAIN.dates_Click
End If
End Sub
Private Sub Form_Activate()
If Me.Tag = "ac" Then
Frame1.Visible = True
While Adodc1.Recordset.EOF = False
Combo1.AddItem Adodc1.Recordset.Fields("Ac_name")
Adodc1.Recordset.MoveNext
Wend
End If
If Me.Tag = "sp" Then
Frame2.Visible = True
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -