Advertisement
Advertisement
| 03.13.2008 at 12:06PM PDT, ID: 23239750 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: |
Private Sub cmdDelete_Click()
If (MsgBox("Deleting a shipping ticket will permanently delete that ticket. Are you sure you want to delete?", vbYesNo, "Delete Confirmation")) = vbYes Then
If Me.Dirty Then
Me.Undo
DoCmd.SetWarnings False
If Not Me.NewRecord Then
RunCommand acCmdDeleteRecord
DoCmd.SetWarnings True
End If
End If
Me.txtTransactionDate.Enabled = True
Me.cboPipeOD.Enabled = True
Me.cboPipeOD = Null
Me.cboPipeWall.Enabled = True
Me.cboPipeWall = Null
Me.tbctrlShipTicket.Visible = False
Me.optTransportType.Enabled = True
Me.txtTransporterNum.Enabled = True
Me.cmdEnterData.Enabled = True
MsgBox "The shipping ticket was successfully deleted.", , "Delete Confirmation"
End If
End Sub
|