How do I run vba code in Access without a macro window opening?

M

mb1946

I am brand new to Access 2007 VBA programming. When I try to run simple test
VBA code, a window pops up asking for a macro name.

What am I doing wrong and how can I get around this?
 
S

Stuart McCall

mb1946 said:
I am brand new to Access 2007 VBA programming. When I try to run simple
test
VBA code, a window pops up asking for a macro name.

What am I doing wrong and how can I get around this?

What's the code and how are you trying to run it? (there are several ways)
 
L

Lincoln

Your VBA code has to generate an output. Place a debug.print "place an output
variable name"; without the quotes of course and open the Immediate Pane by
selecting Ctl-G.

You should see your output in the Immediate Pane. If nothing happens then
your code may require calling the function from a query, or some other higher
level object.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top