- Add the Purchase Order Entry Window to Visual Basic.
- Add the following code to the Window_BeforeModalDialog event:
If PromptString = "Are you sure you want to delete this record?" Then
Answer = dcButton2
Response = MsgBox("You are not allowed to Delete Purchase Orders.", vbOKOnly, "Microsoft Dynamics GP")
Now, instead of prompting to confirm that you want to Delete a PO after selecting Delete from the Actions Button the system will prompt you that you cannot and cancel that action.