📄 frmeditstk.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmeditstk
BorderStyle = 1 'Fixed Single
Caption = "更改出库日期"
ClientHeight = 1920
ClientLeft = 3405
ClientTop = 3420
ClientWidth = 4260
Icon = "Frmeditstk.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1920
ScaleWidth = 4260
Begin VB.CommandButton cmdcancel
Caption = "关闭(&C)"
Height = 340
Left = 2280
Style = 1 'Graphical
TabIndex = 3
Top = 1440
UseMaskColor = -1 'True
Width = 1095
End
Begin VB.CommandButton cmdok
Caption = "确定(&F)"
Height = 340
Left = 960
Style = 1 'Graphical
TabIndex = 2
Top = 1440
UseMaskColor = -1 'True
Width = 1095
End
Begin VB.Frame Frame1
Height = 1335
Left = 120
TabIndex = 0
Top = 0
Width = 4095
Begin VB.TextBox TxtSearch
Height = 270
Left = 1080
MaxLength = 30
TabIndex = 4
Top = 840
Width = 2775
End
Begin MSComCtl2.DTPicker DTP1
Height = 345
Left = 1080
TabIndex = 1
Top = 240
Width = 1575
_ExtentX = 2778
_ExtentY = 609
_Version = 393216
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
CalendarForeColor= 16711680
CalendarTitleBackColor= 255
Format = 61210625
CurrentDate = 36400
End
Begin VB.Label lbl1
Caption = "出库日期:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 255
Index = 0
Left = 120
TabIndex = 6
Top = 240
Width = 1095
End
Begin VB.Label lbl1
Caption = "说明:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 255
Index = 3
Left = 120
TabIndex = 5
Top = 840
Width = 855
End
End
End
Attribute VB_Name = "frmeditstk"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Dno As String
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdok_Click()
db.Execute "update din set mi_date=" & "'" & DTP1.value & "'" & " where dinno=" & "'" & Dno & "'"
db.Execute "update din set addother=" & "'" & Trim(TxtSearch.Text) & "'" & " where dinno=" & "'" & Dno & "'"
MsgBox "修改成功!!", vbInformation, MSG2
End Sub
Private Sub Form_Load()
Dno = FrmCubeStk.DatPrimaryRS.Recordset!dinno
Me.Caption = Me.Caption & Dno
If IsNull(FrmCubeStk.DatPrimaryRS.Recordset!mi_date) = False Then
DTP1.value = FrmCubeStk.DatPrimaryRS.Recordset!mi_date
Else
DTP1.value = Date
End If
If IsNull(FrmCubeStk.DatPrimaryRS.Recordset!addother) = False Then
TxtSearch.Text = FrmCubeStk.DatPrimaryRS.Recordset!addother
End If
End Sub
Private Sub Form_Resize()
'On Error Resume Next
'Me.Top = 0
'Me.Left = 50
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -