Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Module Question

Status
Not open for further replies.

herd

Technical User
Jun 23, 2003
46
0
0
US
I wrote a event procedure tinside a form to call a module;
Example
If Me.Combo215 = "wspec" Then
DoCmd.RunMacro (MACRO1.CON_WSPEC)
ElseIf Me.Combo215 = "WROCI" Then
DoCmd.RunMacro (MACRO1.CON_WROCI)
End If

I get the following error.

Object Required.

What am I doing wrong?

Thanks Gary
 
How about:
DoCmd.RunMacro "MACRO1.CON_WSPEC"
 
Perhaps something like this ?
DoCmd.RunMacro "CON_WSPEC"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top