?? incheck.frm
字號:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form incheck1
Caption = "Form2"
ClientHeight = 5880
ClientLeft = 60
ClientTop = 450
ClientWidth = 7740
LinkTopic = "Form2"
ScaleHeight = 5880
ScaleWidth = 7740
Begin VB.TextBox Text5
BackColor = &H00C0E0FF&
Height = 375
Left = 4560
TabIndex = 21
Text = "Text5"
Top = 5040
Width = 1095
End
Begin VB.ComboBox Combo2
BackColor = &H00C0E0FF&
Height = 300
Left = 6000
TabIndex = 20
Text = "Combo2"
Top = 5040
Visible = 0 'False
Width = 1335
End
Begin VB.ComboBox Combo1
Height = 300
Left = 1200
TabIndex = 19
Text = "車輛名稱"
Top = 960
Width = 1335
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Height = 2535
Left = 360
TabIndex = 18
Top = 2280
Width = 6855
_ExtentX = 12091
_ExtentY = 4471
_Version = 393216
End
Begin VB.TextBox Text4
Height = 375
Left = 1320
TabIndex = 17
Top = 1560
Width = 975
End
Begin VB.TextBox Text3
Height = 375
Left = 3720
TabIndex = 16
Top = 1560
Width = 1335
End
Begin VB.TextBox Text2
Height = 375
Left = 3720
TabIndex = 15
Top = 840
Width = 1335
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 0
Top = 5160
Visible = 0 'False
Width = 1455
_ExtentX = 2566
_ExtentY = 661
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 = "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.ComboBox combod
Height = 300
Left = 6120
TabIndex = 13
Top = 360
Width = 615
End
Begin VB.ComboBox combom
Height = 300
Left = 4920
TabIndex = 11
Top = 360
Width = 735
End
Begin VB.ComboBox comboy
Height = 300
Left = 3720
TabIndex = 9
Top = 360
Width = 735
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 3000
TabIndex = 8
Top = 5040
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "確定"
Height = 495
Left = 1680
TabIndex = 7
Top = 5040
Width = 975
End
Begin VB.TextBox Text1
Height = 375
Left = 1200
TabIndex = 1
Top = 240
Width = 1335
End
Begin VB.Label Label14
Caption = "日"
Height = 375
Left = 6840
TabIndex = 14
Top = 360
Width = 495
End
Begin VB.Label Label13
Caption = "月"
Height = 375
Left = 5760
TabIndex = 12
Top = 360
Width = 495
End
Begin VB.Label Label12
Caption = "年"
Height = 375
Left = 4560
TabIndex = 10
Top = 360
Width = 375
End
Begin VB.Label Label9
Caption = "入庫數量"
Height = 375
Left = 240
TabIndex = 6
Top = 1680
Width = 975
End
Begin VB.Label Label8
Caption = "經手人"
Height = 375
Left = 2760
TabIndex = 5
Top = 1560
Width = 855
End
Begin VB.Label Label6
Caption = "庫存位號"
Height = 375
Left = 2760
TabIndex = 4
Top = 960
Width = 975
End
Begin VB.Label Label3
Caption = "車輛名稱"
Height = 375
Left = 240
TabIndex = 3
Top = 1080
Width = 975
End
Begin VB.Label Label2
Caption = "入庫日期"
Height = 375
Left = 2760
TabIndex = 2
Top = 360
Width = 975
End
Begin VB.Label Label1
Caption = "入庫單號"
Height = 255
Left = 240
TabIndex = 0
Top = 360
Width = 975
End
End
Attribute VB_Name = "incheck1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim rs_checkname As New ADODB.Recordset
Dim rs_custom As New ADODB.Recordset
Const row_num = 10 '表格行數
Const col_num = 6 '表格列數
Private Sub Combo2_Change()
MSFlexGrid1.Text = Combo2.Text
MSFlexGrid1.Row = MSFlexGrid1.Row + 1
MSFlexGrid1.Col = 0
Combo2.Visible = False
Text5.Visible = True
nextposition MSFlexGrid1.Row, MSFlexGrid1.Col
End Sub
Private Sub Command1_Click()
Dim rs_save As New ADODB.Recordset
Dim sql As String
Dim i As Integer
Dim s As String '轉化數據用
On Error GoTo saveerror
If Trim(Text1.Text) = "" Then
MsgBox "入庫單號不能為空!", vbOKOnly + vbExclamation, ""
Text1.SetFocus
Exit Sub
End If
If Combo1.Text = "請選擇車輛名稱" Then
MsgBox "請選擇車輛名稱!", vbOKOnly + vbExclamation, ""
Combo1.SetFocus
Exit Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -