A
Alain Bourgeois
Dear all,
I have an access (2000) application running without any problem in
access 2000 / 2002 / 2003.
This application has more than 400 macros. Some macros have a similar
code in the "condition" column:
Dir ("c:\afile.mdb")>""
And if the condition is true, some processings are done.
In access 2007, although I am not on run-time, that I enabled all
macros, I am in a trusted location, and I am not running in sandbox
mode, I get the error message that there is a function that microsoft
access can't find in an expression (This can be reproduced very easily
by creating a one-line macro with the code Dir ("c:\afile.mdb")>"" in
the condition, setting a msgbox action, then running the macro).
The Dir() function can be called and works from a module in access 2007,
but not from a macro. When chosing "runcode" as action, clicking "...",
build-in functions, Dir() and dir$() do not appear in access 2007 (these
appear under access 2K/XP/2K3).
I would like to make it work. Does someone know if a bug fix exists for
this or if this bug is known at MicroSoft?
I know an "easy" workaround would be to replace Dir() with MyDir() and
to create a MyDir(string) function in a module. OK for 1 macro, but I
have > 400 macros and I don't even have the possibility to identify the
macros where there is a Dir() in the conditions, so this workaround is
not suitable for me.
Furthermore, are there other build-in functions than Dir() having the
same problem?????
Thanks for your help.
Regards,
Alain
I have an access (2000) application running without any problem in
access 2000 / 2002 / 2003.
This application has more than 400 macros. Some macros have a similar
code in the "condition" column:
Dir ("c:\afile.mdb")>""
And if the condition is true, some processings are done.
In access 2007, although I am not on run-time, that I enabled all
macros, I am in a trusted location, and I am not running in sandbox
mode, I get the error message that there is a function that microsoft
access can't find in an expression (This can be reproduced very easily
by creating a one-line macro with the code Dir ("c:\afile.mdb")>"" in
the condition, setting a msgbox action, then running the macro).
The Dir() function can be called and works from a module in access 2007,
but not from a macro. When chosing "runcode" as action, clicking "...",
build-in functions, Dir() and dir$() do not appear in access 2007 (these
appear under access 2K/XP/2K3).
I would like to make it work. Does someone know if a bug fix exists for
this or if this bug is known at MicroSoft?
I know an "easy" workaround would be to replace Dir() with MyDir() and
to create a MyDir(string) function in a module. OK for 1 macro, but I
have > 400 macros and I don't even have the possibility to identify the
macros where there is a Dir() in the conditions, so this workaround is
not suitable for me.
Furthermore, are there other build-in functions than Dir() having the
same problem?????
Thanks for your help.
Regards,
Alain