Re: How to run a module?
- From: "Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxxx>
- Date: Wed, 2 Jul 2008 07:30:09 -0400
You don't execute modules: you execute subs or functions within modules.
Change
DoCmd.OpenModule "Module2", "First"
to
Call First()
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"hanski" <lappalainen.hannu@xxxxxxxxxx> wrote in message
news:a5cea7c4-d28a-4594-8dc9-caa75b7a6205@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi.
I have in my Form a code:
DoCmd.OpenModule "Module2", "First"
and I have a module called Module2 and in it:
Sub First()
MsgBox ("Hi!")
End Sub
My code in a Form do not execute the First, it only opens it.
How can I get it be executted immediately without opening it?
hanski
.
- Follow-Ups:
- Re: How to run a module?
- From: hanski
- Re: How to run a module?
- References:
- How to run a module?
- From: hanski
- How to run a module?
- Prev by Date: Windows XP Professional and Office 2007
- Next by Date: Re: Copying Relationships from one mdb to an other
- Previous by thread: How to run a module?
- Next by thread: Re: How to run a module?
- Index(es):
Relevant Pages
|