📄 frmmaterlist1.frm
字号:
VERSION 5.00
Begin VB.Form frmMaterList1
BorderStyle = 3 'Fixed Dialog
Caption = "物资余额信息"
ClientHeight = 2964
ClientLeft = 48
ClientTop = 336
ClientWidth = 8052
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2964
ScaleWidth = 8052
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.Frame Frame2
Caption = "库存信息"
Height = 2175
Left = 4080
TabIndex = 15
Top = 240
Width = 3735
Begin VB.TextBox txtItem
Height = 270
Index = 7
Left = 1320
TabIndex = 7
Top = 1440
Width = 2175
End
Begin VB.TextBox txtItem
Height = 270
Index = 6
Left = 1320
TabIndex = 6
Top = 960
Width = 2175
End
Begin VB.TextBox txtItem
Height = 270
Index = 5
Left = 1320
TabIndex = 5
Top = 480
Width = 2175
End
Begin VB.Label Label2
Caption = "仓 库:"
Height = 255
Index = 9
Left = 240
TabIndex = 18
Top = 1440
Width = 975
End
Begin VB.Label Label2
Caption = "金 额:"
Height = 255
Index = 6
Left = 240
TabIndex = 17
Top = 960
Width = 975
End
Begin VB.Label Label2
Caption = "数 量:"
Height = 255
Index = 4
Left = 240
TabIndex = 16
Top = 480
Width = 975
End
End
Begin VB.Frame Frame1
Caption = "物资信息"
Height = 2175
Left = 240
TabIndex = 9
Top = 240
Width = 3735
Begin VB.TextBox txtItem
Height = 270
Index = 4
Left = 1320
TabIndex = 4
Top = 1800
Width = 2175
End
Begin VB.TextBox txtItem
Height = 270
Index = 3
Left = 1320
TabIndex = 3
Top = 1440
Width = 2175
End
Begin VB.TextBox txtItem
Height = 270
Index = 2
Left = 1320
Locked = -1 'True
TabIndex = 2
Top = 1080
Width = 2175
End
Begin VB.TextBox txtItem
Height = 270
Index = 1
Left = 1320
TabIndex = 1
Top = 720
Width = 2175
End
Begin VB.TextBox txtItem
Height = 270
Index = 0
Left = 1320
TabIndex = 0
Top = 360
Width = 2175
End
Begin VB.Label Label2
Caption = "类 别:"
Height = 255
Index = 3
Left = 240
TabIndex = 14
Top = 1440
Width = 975
End
Begin VB.Label Label2
Caption = "物资编号:"
Height = 255
Index = 0
Left = 240
TabIndex = 13
Top = 360
Width = 975
End
Begin VB.Label Label2
Caption = "物资名称:"
Height = 255
Index = 1
Left = 240
TabIndex = 12
Top = 720
Width = 975
End
Begin VB.Label Label2
Caption = "计量单位:"
Height = 255
Index = 2
Left = 240
TabIndex = 11
Top = 1800
Width = 975
End
Begin VB.Label Label2
Caption = "规格型号:"
Height = 255
Index = 16
Left = 240
TabIndex = 10
Top = 1080
Width = 975
End
End
Begin VB.CommandButton cmdExit
Caption = "返回 (&X)"
Height = 375
Left = 6480
TabIndex = 8
Top = 2520
Width = 1215
End
End
Attribute VB_Name = "frmMaterList1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'是否改动过记录,ture为改过
Dim mblChange As Boolean
Public txtSQL As String
Dim MsgText As String
Dim mrc As ADODB.Recordset
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim sSql As String
Dim intCount As Integer
Set mrc = ExecuteSQL(txtSQL, MsgText)
If mrc.EOF = False Then
With mrc
For intCount = 0 To 7
If Not IsNull(.Fields(intCount)) Then
txtItem(intCount) = .Fields(intCount)
End If
Next intCount
End With
End If
mrc.Close
End Sub
Private Sub Form_Unload(Cancel As Integer)
gintLmode = 0
End Sub
Private Sub txtItem_GotFocus(Index As Integer)
txtItem(Index).SelStart = 0
txtItem(Index).SelLength = Len(txtItem(Index))
End Sub
Private Sub txtItem_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
EnterToTab KeyCode
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -