📄 sale_opp.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_opp
BackColor = &H00400000&
Caption = "Enter Details"
ClientHeight = 2160
ClientLeft = 60
ClientTop = 450
ClientWidth = 4785
LinkTopic = "Form7"
ScaleHeight = 2160
ScaleWidth = 4785
StartUpPosition = 3 'Windows Default
Begin VB.Frame Frame2
BackColor = &H00E0E0E0&
BorderStyle = 0 'None
Caption = "Frame2"
Height = 1290
Left = 105
TabIndex = 2
Top = 90
Visible = 0 'False
Width = 4605
Begin MSComCtl2.DTPicker DTPicker1
Height = 315
Left = 1380
TabIndex = 3
Top = 345
Width = 2385
_ExtentX = 4207
_ExtentY = 556
_Version = 393216
Format = 19660801
CurrentDate = 38467
End
Begin MSComCtl2.DTPicker DTPicker2
Height = 315
Left = 1365
TabIndex = 4
Top = 780
Width = 2385
_ExtentX = 4207
_ExtentY = 556
_Version = 393216
Format = 19660801
CurrentDate = 38467
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
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 = 5
Top = 825
Width = 1320
End
End
Begin VB.TextBox Text1
DataField = "Ac_no"
DataSource = "Adodc1"
Height = 285
Left = 2700
TabIndex = 1
Text = "Text1"
Top = 2415
Width = 210
End
Begin VB.CommandButton Command1
Height = 465
Left = 2085
Picture = "sale_opp.frx":0000
Style = 1 'Graphical
TabIndex = 0
Top = 1590
Width = 630
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 720
Top = 2385
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 Frame1
BackColor = &H00E0E0E0&
BorderStyle = 0 'None
Caption = "Frame1"
Height = 1395
Left = 105
TabIndex = 7
Top = 75
Visible = 0 'False
Width = 4605
Begin VB.ComboBox Combo1
Height = 315
Left = 1485
TabIndex = 8
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 = 9
Top = 270
Width = 1320
End
End
End
Attribute VB_Name = "sale_opp"
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.sdp_Click
End If
If Me.Tag = "sd" Then
sp_date1 = Str(DTPicker1.Value)
sp_date2 = Str(DTPicker2.Value)
MAIN.Show
Unload Me
Call MAIN.datesp_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 + -