VBA MS Access code wont run -


i new vba , trying first bit of vba code run, have added button form. opened on click event , placed

private sub run_click() msgbox "hello world" end sub` 

into module when go form , click button in form view nothing happens, doing wrong, have tryed run lots of other sniptes of code nothing working, kinda unsure how actaully "run" code.

enter image description here

i click run this

enter image description here

i have gone trust centre , enabled macros , still error ??

// issue has been solved marcos not enabled in trust centre

if brand new database may not "trusted" yet. exit access completely, try opening database again. if see warning like...

security warning: active content has been disabled.

...along "enable content" button click button (to enable macros , vba code) , try form again.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -