473,406 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Why Does My Button Code Copy To "General" Object Window From "[My Button Name]" Objec

34
In order to use the "Me" reference in Access VBE and to have simpler, cleaner code, I moved some automation button code (Private Sub A1_Form_Re_send_Welcome_E_Mail_Only_Button_Click() ) from a standard module into its object in my main form class module. I saved it. I then removed the old standard module. When I re-entered the VBE, I noticed that my code was now on both the "(General)" object window and the "A1_Form_Re_send_Welcome_E_Mail_Only_Button" object window. When I deleted it from the "(General)" object window, it also deleted it from my button object window! I retrieved it, but...

Does the "(General)" object window show ALL the code in the form class module?

Why was it put in the "(General)" object window in the first place?

Does deleteing code in the "(General)" object window delete the code in the "[My Button Name]" object window?

Thanks for the enlightenment -

Frank
Jan 11 '12 #1

✓ answered by Killer42

I'd suggest you ask this in the Access / VBA forum where you're likely to find more expertise with VBA.

If the interface is very much like the VB6 editor then you can switch between Procedure View, which shows just the procedure you're looking at (such as Button1_Click) and Full Module View, which shows all of the code in the module. In the latter case, you might get the impression that you're seeing the code in more than one place, because selecting a particular procedure just moves the text cursor there, without changing what's shown.

2 1368
Killer42
8,435 Expert 8TB
I'd suggest you ask this in the Access / VBA forum where you're likely to find more expertise with VBA.

If the interface is very much like the VB6 editor then you can switch between Procedure View, which shows just the procedure you're looking at (such as Button1_Click) and Full Module View, which shows all of the code in the module. In the latter case, you might get the impression that you're seeing the code in more than one place, because selecting a particular procedure just moves the text cursor there, without changing what's shown.
Jan 13 '12 #2
soule
34
Thanks, K-42,

I get it. I think I may have also had my cursor in the general declatrations (option explicit, etc.) and actual code sections at different times.

S.
Jan 13 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: Dave Smithz | last post by:
Hi, In summary: I want to a form to submit information via a HTTP POST, however, when using Internet Explorer I want to be able to use the back button and all the information retained....
0
by: Andreas Suurkuusk | last post by:
Hi, I just noticed your post in the "C# memory problem: no end for our problem?" thread. In the post you implied that I do not how the garbage collector works and that I mislead people. Since...
2
by: J. Muenchbourg | last post by:
I cannot find anywhere in vs.net that shows me how to set up a form as a start up object in my project. I'm trying an exercise in the PrepLogic Xml manual, which wants me to set my form.vb as a...
16
by: Gufus | last post by:
Hi Group... <a name="#top"></a> ----del---- ----del---- <img SRC="images/top.gif" USEMAP="#top" BORDER=0> <map NAME="top">
14
by: spike | last post by:
Im trying to write a program that should read through a binary file searching for the character sequence "\name\" Then it should read the characters following the "\name\" sequence until a NULL...
44
by: Tolga | last post by:
As far as I know, Perl is known as "there are many ways to do something" and Python is known as "there is only one way". Could you please explain this? How is this possible and is it *really* a...
3
by: Gregory Piñero | last post by:
Just thought I'd see if you guys had an answer for this. My website analytics page shows that people come to my site after searching for "Python drive name" but I don't think I'm offering any help...
2
by: alxasa | last post by:
Hello, I am hoping someone can help me with this. I need a javascript function, which sits inside a <input type="text" name="firstname"> line of code. Now, if someone starts typing fine, but when...
3
by: Mac Campbell | last post by:
For some unknown reason my mdb seemed to drop a module I had named "Utilities". I tried to copy the module back in from a backup copy and got the error message "<<MyProject>> is currently unable to...
11
by: mfglinux | last post by:
Hello to everybody I would like to know how to declare in python a "variable name" that it is in turn a variable In bash shell I would wrote sthg like: for x in `seq 1 3` do M$i=Material(x)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.