Hi there.
First post \0/
I know i'm a noob and i was wondering if someone can help me perchance with my little module/macro problem.
My problem is that I've got a module that works fine if i manually run it when i'm in it, but when i call that module from a macro then all that happens is that the macro opens the module in design view.
At the moment my module looks like the following.
Module RunLookups
The macro that calls this module seems to just open it.
CheckCodes
Any suggestions on what im doing wrong?
How can i get the macro to run the module and not just open it?
Pls help im almost killing little kittens here.
Thanks for your help it's much appreciated.
First post \0/
I know i'm a noob and i was wondering if someone can help me perchance with my little module/macro problem.
My problem is that I've got a module that works fine if i manually run it when i'm in it, but when i call that module from a macro then all that happens is that the macro opens the module in design view.
At the moment my module looks like the following.
Module RunLookups
Code:
Option Compare Database
Sub AccessTest1()
Dim A As Object
Set A = CreateObject("Access.Application")
A.Visible = False
A.OpenCurrentDatabase ("w:\database\bas\lookups.mdb")
A.DoCmd.RunMacro "checkcodes"
End Sub
The macro that calls this module seems to just open it.
CheckCodes
Code:
Setwarning > No
OpenModule > Module Name > RunLookups
Any suggestions on what im doing wrong?
How can i get the macro to run the module and not just open it?
Pls help im almost killing little kittens here.
Thanks for your help it's much appreciated.