Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 23rd, 2006, 10:39 AM
Registered User
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Daft question from a newbie

Hi All,

just getting my ahead around VBA for Access 2000. When I try to run some code that's in a particular module, a dialog box comes up that offers me the choice of running some macros, both of which are actually modules I've already written.

What am I doing wrong?

Thanks in advance,

DM
 
Old November 23rd, 2006, 12:54 PM
Authorized User
 
Join Date: Nov 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Im not clear what your question is, it offers you a choise of running some macros, can you be more specific?

...what is triggering the macro?
...what is the macro referencing?
...can you provide us a demo?
 
Old November 27th, 2006, 07:38 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to leehambly
Default

Danny,

I suspect you mean that when you hit F5 (or hit the "play" button) then the Macro dialog form pops up and it doesnt contain the function/sub you are expecting to run, merely the Macros you have already set up.

Use the Immediate window (Ctrl-G, I think) to start your modules using the sub/function name as you would in code, rather than jumping into the middle of them and hitting F5.

Hope it helps,

Lee
 
Old November 27th, 2006, 07:44 AM
Registered User
 
Join Date: Nov 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Lee,

forgot to post an update, I'd realised that was exactly what was happening. I was running code for a function from within the function to test it rather than calling it properly.

Thanks again






Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question pbb Ajax 0 September 26th, 2006 05:47 AM
Newbie question savoym JSP Basics 1 August 16th, 2006 03:15 AM
Newbie Question - Sorry! KP Crystal Reports 1 June 13th, 2006 02:45 AM
C# Newbie Question jazzcatone ASP.NET 2.0 Basics 1 May 25th, 2006 10:18 PM
Newbie question maccer88 Access 1 October 18th, 2003 05:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.