How do I assign the vba code to a button on a form?
Thanks
Display the Form's property sheet.
Click on the Event tab.
Click on the event line you wish to code.
Write
[Event Procedure]
on that line.
Then click on the little button with the 3 dots that appears on that
line.
When the code window opens, the cursor will be flashing between 2
already existing lines of code.
Between those lines write your code.