G
Guest
I have a MsgBox and cannot tell which button was pressed. Based on that value, I want to be able to exit an [Event Procedure]. Here is the piece of code that brings up the box
Private Sub UpdateAccruedLeaveTime_Click(
On Error GoTo Err_UpdateAccruedLeaveTime_Clic
' make sure they want to do it
Dim strMsg As String, strTitle As Strin
Dim intStyle As Intege
strMsg = "This action will update ALL records. Is that what you want?
intStyle = vbYesN
strTitle = "* * * Update Records * * *
MsgBox strMsg, intStyle, strTitl
Dim stDocName As Strin
stDocName = "qryUpdateAnnualBal
DoCmd.OpenQuery stDocName, acNormal, acEdi
Regardless of the Yes or No button pressed, intStyle always returns a value of 4.
tia
JMorrell
Private Sub UpdateAccruedLeaveTime_Click(
On Error GoTo Err_UpdateAccruedLeaveTime_Clic
' make sure they want to do it
Dim strMsg As String, strTitle As Strin
Dim intStyle As Intege
strMsg = "This action will update ALL records. Is that what you want?
intStyle = vbYesN
strTitle = "* * * Update Records * * *
MsgBox strMsg, intStyle, strTitl
Dim stDocName As Strin
stDocName = "qryUpdateAnnualBal
DoCmd.OpenQuery stDocName, acNormal, acEdi
Regardless of the Yes or No button pressed, intStyle always returns a value of 4.
tia
JMorrell