Notiophilus
Registered User.
- Local time
- Today, 16:24
- Joined
- Jan 18, 2015
- Messages
- 42
Access 2010. Trying to understand more about event order on forms, I ran into the Form events CommandBeforeExecute, CommandChecked, CommandEnabled, and CommandExecute. They look intriguing and possibly useful, but what do they actually do, and what triggers them? According to Microsoft's help page for CommandExecute, for example, the event...
...so what counts as a command in this case? The help page references "Microsoft Office web components" so I'm assuming it might have something to do with web-based Access databases (?) which I know nothing about. Nonetheless, I'm curious.
(sorry for the post spam - it's one of those days.)
It then gives the following example:Occurs after the specified command is executed. Use this event when you want to execute a set of commands after a particular command is executed.
Code:
Private Sub Form_CommandExecute(ByVal Command As Variant)
MsgBox "The command specified by " & Command.Name & " has been executed."
End Sub
...so what counts as a command in this case? The help page references "Microsoft Office web components" so I'm assuming it might have something to do with web-based Access databases (?) which I know nothing about. Nonetheless, I'm curious.
(sorry for the post spam - it's one of those days.)