📄 form3.frm
字号:
Begin VB.TextBox Text2
Height = 264
Left = 2160
TabIndex = 16
Top = 240
Width = 2295
End
Begin VB.Label Label2
Caption = "新的发运计划票号:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 252
Left = 120
TabIndex = 17
Top = 240
Width = 2172
End
End
Begin MSAdodcLib.Adodc Adodc2
Height = 336
Left = 1800
Top = 8280
Visible = 0 'False
Width = 3120
_ExtentX = 5503
_ExtentY = 593
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= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc2"
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.ListBox List1
Height = 2208
Left = 7920
TabIndex = 6
Top = 2040
Width = 3732
End
Begin MSAdodcLib.Adodc Adodc1
Height = 336
Left = 1800
Top = 7920
Visible = 0 'False
Width = 2772
_ExtentX = 4890
_ExtentY = 593
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 = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
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.CommandButton Command4
Caption = "<"
Enabled = 0 'False
Height = 372
Left = 6840
TabIndex = 5
Top = 3720
Width = 492
End
Begin VB.CommandButton Command3
Caption = "<<"
Enabled = 0 'False
Height = 372
Left = 6840
TabIndex = 4
Top = 3240
Width = 492
End
Begin VB.CommandButton Command2
Caption = ">"
Enabled = 0 'False
Height = 372
Left = 6840
TabIndex = 3
Top = 2760
Width = 492
End
Begin VB.CommandButton Command1
Caption = ">>"
Enabled = 0 'False
Height = 372
Left = 6840
TabIndex = 2
Top = 2280
Width = 492
End
Begin VB.Frame Frame1
BackColor = &H00C0E0FF&
Caption = "查询条件"
Height = 1092
Left = 360
TabIndex = 0
Top = 840
Width = 11292
Begin VB.ComboBox Combo4
Height = 276
Left = 4800
TabIndex = 24
Text = " 原煤"
Top = 720
Width = 1572
End
Begin VB.CommandButton Command8
Caption = "?"
Height = 372
Left = 9960
TabIndex = 20
Top = 600
Width = 732
End
Begin VB.CommandButton Command5
Caption = "确定"
Enabled = 0 'False
Height = 375
Left = 9000
TabIndex = 14
Top = 600
Width = 852
End
Begin VB.TextBox Text1
Height = 270
Left = 7560
TabIndex = 13
Text = "0"
Top = 720
Width = 615
End
Begin VB.ComboBox Combo3
Enabled = 0 'False
Height = 300
ItemData = "Form3.frx":235C
Left = 6720
List = "Form3.frx":236C
TabIndex = 12
Text = "="
Top = 720
Width = 735
End
Begin VB.OptionButton Option2
Caption = "发货单位:"
Height = 255
Left = 2040
TabIndex = 10
Top = 360
Width = 2415
End
Begin VB.OptionButton Option1
Caption = "发货人:"
Height = 255
Left = 480
TabIndex = 9
Top = 360
Width = 1815
End
Begin VB.ComboBox Combo2
Height = 276
Left = 2040
TabIndex = 8
Top = 720
Width = 2535
End
Begin VB.ComboBox Combo1
Height = 276
Left = 480
TabIndex = 7
Top = 720
Width = 1332
End
Begin VB.Label Label3
Caption = "煤种"
Height = 252
Left = 4680
TabIndex = 23
Top = 360
Width = 1452
End
Begin VB.Label Label1
Caption = "未发量"
Height = 252
Left = 6720
TabIndex = 11
Top = 360
Width = 1572
End
End
Begin VB.Label Label4
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "合同发运尾量调整"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 372
Left = 1680
TabIndex = 26
Top = 240
Width = 5772
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim sqlstr As String
Private Sub Combo1_Change()
Combo1_Click
End Sub
Private Sub Combo1_Click()
Me.Option1 = True
Me.Command5.Enabled = True
Me.Combo3.Enabled = True
End Sub
Private Sub Combo2_Change()
Combo2_Click
End Sub
Private Sub Combo2_Click()
Me.Combo3.Enabled = True
Me.Option2 = True
Me.Command5.Enabled = True
End Sub
Private Sub Command1_Click()
On Error Resume Next
Dim recc As Long
Me.Adodc1.refresh
recc = Me.Adodc1.Recordset.RecordCount
If Adodc1.Recordset.EOF = True Then
Adodc1.Recordset.MoveLast
End If
Dim ii As Long
For ii = 1 To recc
If IsNull(Me.Adodc1.Recordset.Fields(0)) = False Then
Me.List1.AddItem Me.Adodc1.Recordset.Fields(0)
End If
Me.Adodc1.Recordset.MoveNext
Next ii
recc = 0
End Sub
Private Sub Command2_Click()
On Error Resume Next
Me.List1.AddItem Me.Adodc1.Recordset.Fields(0)
End Sub
Private Sub Command3_Click()
On Error Resume Next
Dim recc As Long
recc = 0
recc = Me.List1.listcount
''debug.Print recc
Dim ii As Integer
If recc > 0 Then
For ii = recc To 1 Step -1
Me.List1.RemoveItem (ii - 1)
Next ii
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -