If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to run a module?
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 |
#2
|
|||
|
|||
How to run a module?
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" wrote in message ... 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 |
#3
|
|||
|
|||
How to run a module?
On 2 heinä, 14:30, "Douglas J. Steele"
wrote: You don't execute modules: you execute subs or functions within modules. Change DoCmd.OpenModule "Module2", "First" to Call First() -- Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele (no e-mails, please!) "hanski" wrote in message ... 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- Piilota siteerattu teksti - - Näytä siteerattu teksti - Thank you - again. hanski |
Thread Tools | |
Display Modes | |
|
|