BlueSpruce
Active member
- Local time
- Today, 18:02
- Joined
- Jul 18, 2025
- Messages
- 994
YesAre these other projects on the same machine?
That's the case with this app. I did the Application.SaveAsText that Tom suggested and did not see any corruption. I also examined that forms code with a hex editor, but that was useless. So instead of beating this dead horse I did not use the vbDefaultButton2 constant, inverted my logic to the default Yes button, "DON'T print customer receipt?", and that works ugh.You COULD have a situation where an app does something that no other app does.
Maybe some gremlin changed the vbNo constant to vbYes
Code:
Private Sub cmdPrintReceipt_Click()
Dim response as String
response = MsgBox("DON'T Print Customer Receipt?", vbYesNo)
If response = vbYes Then Exit Sub
DoCmd.OpenReport "rptPrintCustomerReceipt", , , "[ContractNo] = " & Me.ContractNo
End Sub
Last edited: