B
Bob Vance
Getting "frmZeroAmountHolding" to open with message box but canf get it to
Close after making any selection from my Message box.............Thanks if
you can help.........Bob
Private Sub cmdDistributeAllInvoices_Click()
DoCmd.OpenForm "frmZeroAmountHolding"
Dim nRtnValue As Integer
nRtnValue = MsgBox("Are you sure you want to Distribute All Invoices?" &
vbCrLf & vbCrLf & "If you choose Yes, all the Invoices will have Invoice
Numbers.", vbCritical + vbYesNo + vbDefaultButton2, "Distribute all
Invoices")
If nRtnValue = vbYes Then
DoCmd.Hourglass True
subSetInvoiceValues
Application.SysCmd acSysCmdSetStatus, "Process is completed."
Application.SysCmd acSysCmdClearStatus
DoCmd.Hourglass False
Me.lstModify.Requery
DoCmd.Close "frmZeroAmountHolding" '????????
End If
End Sub
Close after making any selection from my Message box.............Thanks if
you can help.........Bob
Private Sub cmdDistributeAllInvoices_Click()
DoCmd.OpenForm "frmZeroAmountHolding"
Dim nRtnValue As Integer
nRtnValue = MsgBox("Are you sure you want to Distribute All Invoices?" &
vbCrLf & vbCrLf & "If you choose Yes, all the Invoices will have Invoice
Numbers.", vbCritical + vbYesNo + vbDefaultButton2, "Distribute all
Invoices")
If nRtnValue = vbYes Then
DoCmd.Hourglass True
subSetInvoiceValues
Application.SysCmd acSysCmdSetStatus, "Process is completed."
Application.SysCmd acSysCmdClearStatus
DoCmd.Hourglass False
Me.lstModify.Requery
DoCmd.Close "frmZeroAmountHolding" '????????
End If
End Sub