📄 form4.frm
字号:
VERSION 5.00
Begin VB.Form Form4
Caption = "设定最低库存"
ClientHeight = 3240
ClientLeft = 60
ClientTop = 450
ClientWidth = 6120
LinkTopic = "Form3"
ScaleHeight = 3240
ScaleWidth = 6120
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
Caption = "退 出"
Height = 495
Left = 4320
TabIndex = 5
Top = 1920
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "设 定"
Height = 495
Left = 2760
TabIndex = 4
Top = 1920
Width = 1215
End
Begin VB.TextBox Text2
Height = 375
Left = 1920
TabIndex = 1
Text = "Text2"
Top = 1200
Width = 1815
End
Begin VB.TextBox Text1
BackColor = &H80000000&
Enabled = 0 'False
Height = 375
Left = 1920
TabIndex = 0
Text = "Text1"
Top = 480
Width = 1695
End
Begin VB.Label Label3
Caption = "注:此值为所有药品共用的一个初始值"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 6
Top = 2880
Width = 5295
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 = 495
Left = 360
TabIndex = 3
Top = 1200
Width = 1575
End
Begin VB.Label Label1
Caption = "当前最低库存"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 360
TabIndex = 2
Top = 480
Width = 1695
End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If rec_config.RecordCount = 0 Then
rec_config.AddNew
End If
rec_config.Fields("最低库存") = Text2
rec_config.Update
MsgBox "设定成功"
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Text1 = "200"
Text2 = "200"
Call ExcuteSql(rec_config, "select * from config")
If Not rec_config.EOF And Not rec_config.BOF Then
Text1 = rec_config.Fields("最低库存")
Text2 = rec_config.Fields("最低库存")
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -