Hi all
This must be really simple.
I have Access 2003. I created a new database, with one form, with one text field.
In the VBA editor for the form I have created a function in the form's module, which is
I thought that I could run any procedure by just putting the cursor in the code and then selecting Run | Run Sub.
Why does it want a macro name? can I only run subroutines from a general module?
regards
John
This must be really simple.
I have Access 2003. I created a new database, with one form, with one text field.
In the VBA editor for the form I have created a function in the form's module, which is
public sub test1()
msgbox "Hi"
end sub
I have compiled it. But if a select Run | Run Sub on the editor menu to run it, Access displays its dialog box for creating a macro, with just the cancel button highlighted. I don't get the message box.msgbox "Hi"
end sub
I thought that I could run any procedure by just putting the cursor in the code and then selecting Run | Run Sub.
Why does it want a macro name? can I only run subroutines from a general module?
regards
John