
Signature
HTH
Van T. Dinh
MVP (Access)
> Yes, it is running a macro. The macro calls a function in a .bas file.
> The
[quoted text clipped - 40 lines]
>> >
>> > Thanks in advance for your help.
I did as you suggested, but it still does not work.
I also went to the bottom of the screen where you can see the actual
Function Name and browsed out to the Expression Builder. When I open the
Functions folder, the subsequent class modules and finally the list of
functions available to me, I can see the function in question. Even when I
select the function through this list and try again, VB can not find it in
run-time.
I’m not sure how to debug a macro and didn’t find any documentation on how
to do so, but I thought the problem was within VB.
I deleted the function from within VB, saved it, exited Access, opened the
.bas module again and pasted the function back into the code. It still does
not work.
There are six total function calls within this macro, 3 of which call the
function in question. The other three work just fine, but they call
different functions. I guess my next step is to get rid of the code
completely and write completely new code.
Thanks for your help, I really appreciate it.
> I am not sure whether this will fix your problem but in the relevant Macro,
> find the RunCode action and check the function name argument to make sure
[quoted text clipped - 53 lines]
> >> >
> >> > Thanks in advance for your help.
Van T. Dinh - 07 Nov 2006 20:40 GMT
* Have you tried recompile / compact & repair?
* Have you tried the /Decompile switch?
* Try also creating a new blank database and import all objects from the
exisitng database into the new blank database.

Signature
HTH
Van T. Dinh
MVP (Access)
>I did as you suggested, but it still does not work.
>
[quoted text clipped - 87 lines]
>> >> >
>> >> > Thanks in advance for your help.
Mel - 08 Nov 2006 22:29 GMT
The problem is fixed and I feel like such an idiot.
The reason it didn't work was because a module and function had the same
name. The function was in a different module. In this case, I had a module
called "Deluxe" and a function in a different module also called "Deluxe".
So in Access 2.0, the same name could be share across functions and modules
but it is not the case in Access 2003. The compiler caught this problem with
different app, but I think in that case the function and the module were
contained in the same unit.
Thank you so much for your help.
> * Have you tried recompile / compact & repair?
> * Have you tried the /Decompile switch?
[quoted text clipped - 91 lines]
> >> >> >
> >> >> > Thanks in advance for your help.