N
Nando
Hi all! Question: how do I either rename or delete a macro through VBA/DAO
code? This is as far as I got:
Dim mcr as Document
....
Set mcr = Containers("Scripts").Documents("MyMacro")
I tried to use automation, but when I'm calling Access to open the database
it has either a startup form and an autoexec macro that I cannot bypass. The
loading of these routines take quite some time and I would like to bypass
them (through automation/coding - no the shiftkey). All I can see from the
Access.Application object is a Visible property. For what I'm trying to do I
just need to open the database through code without triggering all these
nonsense scripts within the database. I know that DAO actually opens the
file quietly, so I'm able to change the startup form, but I'm unable to
rename the autoexec macro, since I don't see any methods exposed. Any ideas
appreciate it.
code? This is as far as I got:
Dim mcr as Document
....
Set mcr = Containers("Scripts").Documents("MyMacro")
I tried to use automation, but when I'm calling Access to open the database
it has either a startup form and an autoexec macro that I cannot bypass. The
loading of these routines take quite some time and I would like to bypass
them (through automation/coding - no the shiftkey). All I can see from the
Access.Application object is a Visible property. For what I'm trying to do I
just need to open the database through code without triggering all these
nonsense scripts within the database. I know that DAO actually opens the
file quietly, so I'm able to change the startup form, but I'm unable to
rename the autoexec macro, since I don't see any methods exposed. Any ideas
appreciate it.