UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

> Can Sub & Form Button Have Same Name?, Office 2007    
 
   
Soule
post Mar 3 2012, 03:57 PM
Post #1

UtterAccess Enthusiast
Posts: 64



Hi, Everyone,

I want to click a form button and run code in a STANDARD module (not the "behind the form" class module).

I noticed the name (not the Caption) of my form button was different than the name of my Public Sub, so I changed the name of my
Sub to match the name of the button. I started getting an error message.

1) Are both Subs and buttons considered objects in Access?

2) Should my Subs and buttons have different names?

Any bit of information to clear this up for me will be appreciated. Thank you!


Frank
Go to the top of the page
 
+
 
Start new topic
Replies
Soule
post Mar 5 2012, 11:46 PM
Post #2

UtterAccess Enthusiast
Posts: 64



Solved:

Hey, DBG - thanks for your time and effort replying to my post.

I decided to change my names back...they're all different now.

I used Event Procedures in my Event property to point to them.

Thank you.

Frank
Go to the top of the page
 
+

Posts in this topic


Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 22nd May 2013 - 02:55 PM