Just wondering, is it better to have Access write the code for you, or to write it yourself?
Case in point:
Quit button.
Mine:
Access:
Now both have the same end result, but Access’s has a lot of others stuff in it. Which is “better”?
And while I’m picking your brains, what is the proper/correct way to comment code?
Thanks for any help
Case in point:
Quit button.
Mine:
Code:
Private Sub cmdExit_DB_Click()
DoCmd.Quit
End Sub
Access:
Code:
Private Sub Command60_Click()
On Error GoTo Err_Command60_Click
DoCmd.Quit
Exit_Command60_Click:
Exit Sub
Err_Command60_Click:
MsgBox Err.Description
Resume Exit_Command60_Click
End Sub
Now both have the same end result, but Access’s has a lot of others stuff in it. Which is “better”?
And while I’m picking your brains, what is the proper/correct way to comment code?
Thanks for any help