Private Sub 编辑物料_Click()
DoCmd.OpenForm "物料基本信息_新增物料", , , , , , "物料编号='" & Me.物料基本信息子窗体.Form!物料编号 & "'"
End Sub
Private Sub 物料编号_DblClick(Cancel As Integer)
DoCmd.OpenForm "物料基本信息_新增物料", , , , , , "物料编号='" & Me!物料编号 & "'"
End Sub
Private Sub Form_Load()
If Not IsNull(Me.OpenArgs) Then
Me.DataEntry = False
Me.Filter = Me.OpenArgs
Me.FilterOn = True
Else
Me.DataEntry = True
End If
End Sub
Private Sub Form_Load()
If Not IsNull(Me.OpenArgs) Then
Me.DataEntry = False
Me.Filter = Me.OpenArgs
Me.FilterOn = True
Me.Caption = "编辑物料"
Else
Me.DataEntry = True
Me.Caption = "新增物料"
End If
End Sub