"Run sub/UserForm" Doesn't work

radek225

Registered User.
Local time
Today, 10:24
Joined
Apr 4, 2013
Messages
307
I don't know why but I can't check my code in editor vba. Please see screenshot. Button "Run" is inactive.
 

Attachments

  • 1.jpg
    1.jpg
    98.5 KB · Views: 118
You cant run a macro because none exist... a macro isnt made of VBA code.

Try using F8 to step thru your code or F5 to execute it

Plus I dont think you can actually execute on demand private subs like this. Instead simply use the button on your form to activate it

Some words of advice.
- Indent your code "properly" messy code is unreadable and becomes a maintenace nightmare
- Disambiguate, since recordsets come in two versions you should specify which one you want... Usually DAO.Recordset
- Why run a VBA calculation to update a table? Why not use an update query instead?
 

Users who are viewing this thread

Back
Top Bottom