DECLARE @ProductTotals TABLE
(
ProductID int,
Revenue money
)
(
ProductID int,
Revenue money
)
Collection of unedited thoughts and bits of knowledge I can't seem to remember
Private Sub Form_QueryUnload(cancel As Integer, unloadmode As Integer)Private Sub MDIForm_QueryUnload(cancel As Integer, unloadmode As Integer)| Part | Description |
| cancel | An integer. Setting this argument to any value other than 0 stops the QueryUnload event in all loaded forms and stops the form and application from closing. |
| unloadmode | A value or constant indicating the cause of the QueryUnload event, as described in Return Values. |
| Constant | Value | Description |
| vbFormControlMenu | 0 | The user chose the Close command from the Control menu on the form. |
| vbFormCode | 1 | The Unload statement is invoked from code. |
| vbAppWindows | 2 | The current Microsoft Windows operating environment session is ending. |
| vbAppTaskManager | 3 | The Microsoft Windows Task Manager is closing the application. |
| vbFormMDIForm | 4 | An MDI child form is closing because the MDI form is closing. |
| vbFormOwner | 5 | A form is closing because its owner is closing. |