GreekPatriot
Technical User
this is a general sort of question.
What are the advantages and disadvantages of converting macros to modules (functions)???
Another question is. What are the differences between modules and subroutines? Can a module be converted to a subroutine?????
For example can this be converted to a subroutine?? Cheers
Option Compare Database
'------------------------------------------------------------
' Quit
'
'------------------------------------------------------------
Function Quit()
On Error GoTo Quit_Err
DoCmd.Quit acSave
Quit_Exit:
Exit Function
Quit_Err:
MsgBox Error$
Resume Quit_Exit
End Function
What are the advantages and disadvantages of converting macros to modules (functions)???
Another question is. What are the differences between modules and subroutines? Can a module be converted to a subroutine?????
For example can this be converted to a subroutine?? Cheers
Option Compare Database
'------------------------------------------------------------
' Quit
'
'------------------------------------------------------------
Function Quit()
On Error GoTo Quit_Err
DoCmd.Quit acSave
Quit_Exit:
Exit Function
Quit_Err:
MsgBox Error$
Resume Quit_Exit
End Function