debugging code- access/vba cannot find 'macro'

G

Guest

the f5 or command in the immediate window pops the dialog to enter the macro
to run... if I create a macro, and a function to call from the macro, where
the function then invokes the sub proc I want to step through, that macro is
still not found. office access 2003 sp1; The task is so basic to the IDE
that I am frustrated in not finding any mechanism to start the debug of this
updated code. It worked OK in excel but was slow; we also needed some
db-record ordering capabilities so I ported it to Access to finish a report.
It was due, oh, days ago, but this has been holding me up. any help from the
MSPros - very appreciated.
 
D

Dirk Goldgar

bern said:
the f5 or command in the immediate window pops the dialog to enter
the macro to run... if I create a macro, and a function to call from
the macro, where the function then invokes the sub proc I want to
step through, that macro is still not found. office access 2003 sp1;
The task is so basic to the IDE that I am frustrated in not finding
any mechanism to start the debug of this updated code. It worked OK
in excel but was slow; we also needed some db-record ordering
capabilities so I ported it to Access to finish a report. It was due,
oh, days ago, but this has been holding me up. any help from the
MSPros - very appreciated.

More information, please. Could you post the code that you're actually
trying to debug? Is it an event procedure, a procedure in a form or
report module, or is it in a standard module? Does the procedure have
any parameters?
 
G

Guest

Just a standard public procedure in a standard module, not a class module, a
report or a form.
no parameters to the proc.
rather than trying to run my PC into the ground in an excel vba crunch of
26000+ records, this version of the working excel vba is modifed to run
against the data already imported into access tables. via complex
comparisons of values, this proc then generates a table of summation data
that I will be reporting over.
thanks
 
D

Dirk Goldgar

bern said:
Just a standard public procedure in a standard module, not a class
module, a report or a form.
no parameters to the proc.
rather than trying to run my PC into the ground in an excel vba
crunch of 26000+ records, this version of the working excel vba is
modifed to run against the data already imported into access tables.
via complex comparisons of values, this proc then generates a table
of summation data that I will be reporting over.
thanks

So, if you open the module in the VB Editor, click in the procedure so
as to make it the active procedure, and then press F5 (or click Run),
does the Macros dialog still appear? If so, that is odd behavior.
 
G

Guest

exactly so.
I have just reset the Jet4.0 engine sandboxmode to '0' to attempt to see if
that had anything to do with the macros not being found, or the functions/
procs for that matter.
 
D

Dirk Goldgar

bern said:
exactly so.
I have just reset the Jet4.0 engine sandboxmode to '0' to attempt to
see if that had anything to do with the macros not being found, or
the functions/ procs for that matter.

Have you tried explicitly compiling the project (Debug -> Compile) to
see if there's maybe a compile error that is preventing the procedure
from executing?
 
G

Guest

yes, it has to compile to step through; the sandbox =3 default of MS Office
was indeed the culprit. all going well now... I thank you for your diligent
effort- have a great weekend!
 
D

Dirk Goldgar

bern said:
yes, it has to compile to step through; the sandbox =3 default of MS
Office was indeed the culprit. all going well now... I thank you for
your diligent effort- have a great weekend!

Seem to me like you found your solution yourself, but it's been my
pleasure to sit here and let you bounce ideas off me. :)
 

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