Morning all,

Unfortunately I am currently working with Access VBA. I have a simple method; moving an object on a form:

button.Top = button.Top - 20

However on click, I receive the 'Invalid Outside Procedure' message, including:

*The exression may not result in the name of the macro, the name of the user defined function or event procedure
*There may have been an error evaluating the function, event or macro

Hope you experts can help :)

I have just solved this - It was relating to something else on the form, or more to the point; assigning variables outside a function - oops!

Sorry guys :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.