D
DS
I have this If statement that works great. Except for the third option.
On the third option I need to delete all records that have the same
LineID as the one I am deleting. Thanks for any suggestions.
Private Sub Command74_Click()
If [ItemType] = "Mod" And [Text70] > 1 Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Me.Refresh
ElseIf [ItemType] = "Main" And [Text70] = 1 Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Me.Refresh
ElseIf [ItemType] = "Main" And [Text70] > 1 Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
' Where [LineID] = [Text72]
Me.Refresh
End If
End Sub
DS
On the third option I need to delete all records that have the same
LineID as the one I am deleting. Thanks for any suggestions.
Private Sub Command74_Click()
If [ItemType] = "Mod" And [Text70] > 1 Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Me.Refresh
ElseIf [ItemType] = "Main" And [Text70] = 1 Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Me.Refresh
ElseIf [ItemType] = "Main" And [Text70] > 1 Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
' Where [LineID] = [Text72]
Me.Refresh
End If
End Sub
DS