My question seems to be very silly, but I haven't found solution myself.
Is there a way to simply paste a macro (example) from Stack Overflow in Access? Or, alternatively, paste it from Access to Stack Overflow?
I know, it is very easy in Word and Excel. But I can't understand how to do it in Access.
Basic questions certainly deserve asking, if they're not duplicates.
There are a couple of different cases:
Add VBA on a form event (this case)
Identify the control you want to add the macro to (the part before the
_
is the control name, the part after the_
is the event name, so theKeyDown
event on the form control.Identify the event you want to add code to on the event pane
...
thing<DataMacro Event="AfterInsert">
= On After InsertNote that questions about non-VBA macros rarely contain the AXL necessary to paste it. Pasting AXL is somewhat contra-intuitive, as you don't paste it in a textbox and the result isn't text.