473,396 Members | 2,055 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,396 software developers and data experts.

A97 allows separate procedures in a form module to share common labels.

MLH
A97 allows separate procedures in a form module to share common
label names. Access 2.0 would puke when that happened. For instance,
if I had 2 procedures in an Access 2.0 form module with labels both
named ERR_MyButton_Click, compiling loaded modules produced
an error. I'm glad to see this is not the case in Access 97. Access
2.0 went so far as to disallow me from using the same line numbers
in two different procedures of a form module. If I numbered one of
them with 100, 110, 120 and 130. I would have to number the next
procedure's lines with 101, 111, 121, 131 or something else that
didn't conflict. That was a pain.

Anyone know of a setting in Access 2.0 that overcomes the problem?
Nov 13 '05 #1
2 1434
MLH wrote:
A97 allows separate procedures in a form module to share common
label names. Access 2.0 would puke when that happened. For instance,
if I had 2 procedures in an Access 2.0 form module with labels both
named ERR_MyButton_Click, compiling loaded modules produced
an error. I'm glad to see this is not the case in Access 97. Access
2.0 went so far as to disallow me from using the same line numbers
in two different procedures of a form module. If I numbered one of
them with 100, 110, 120 and 130. I would have to number the next
procedure's lines with 101, 111, 121, 131 or something else that
didn't conflict. That was a pain.

Anyone know of a setting in Access 2.0 that overcomes the problem?


Stop using line numbers?

Access 97 overcomes these problems because the VBA for forms is stored
in a Class module, which has its own namespace. Access 2.0 doesn't
really do Class modules.

If you want to call a common VBA function from other forms, then factor
the function out into a separate module, and just have the event
handlers call it. You will want to have a good understanding of how the
"Me" reference shortcut works...
Nov 13 '05 #2
MLH
I was just curious really. It was a problem only with line numbers for
me in access 2.0.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Stop using line numbers?

Access 97 overcomes these problems because the VBA for forms is stored
in a Class module, which has its own namespace. Access 2.0 doesn't
really do Class modules.

If you want to call a common VBA function from other forms, then factor
the function out into a separate module, and just have the event
handlers call it. You will want to have a good understanding of how the
"Me" reference shortcut works...


Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: WSeeger | last post by:
When creating a new class, is it encouraged to always include error handling routines within your LET and GET procedures? It's seems that most text books never seem to include much about error...
18
by: Jarrod Morrison | last post by:
Hi All I was wondering if there is a way to call a stored procedure from inside another stored procedure. So for example my first procedure will call a second stored procedure which when...
17
by: serge | last post by:
How can i delete all user stored procedures and all table triggers very fast in a single database? Thank you
20
by: Brian | last post by:
I'm wondering what the group thinks is the best way to display the <label> element. The default rendering in Moz and MSIE/Win (probably others, too) only changes the mouse cursor (that's a strange...
2
by: Confessor | last post by:
Having just figured out the function of the *sender* argument in control events, I now have 85 labelX_Click procedures that perform the exact same function: Call ColorChange(sender). That's it. ...
3
by: Chris Smith | last post by:
Hola, pythonisas: The documentation for the logging module is good, but a bit obscure. In particular, there seems to be a lot of action at a distance. The fact that getLogger() can actually be a...
3
by: Galen Somerville | last post by:
In two different Form modules FFTcls.Currfrm = Me In FFTcls class module Dim CurrForm As System.Windows.Forms.Form Public WriteOnly Property Currfrm() As System.Windows.Forms.Form...
16
by: Neil | last post by:
I am using Access 2003, and have an ongoing problem of every once in a while losing an event procedure for a form or control. The procedure's still in the code module, but the form or control's...
2
by: Jean-Paul Calderone | last post by:
On Mon, 16 Jun 2008 08:39:52 +1000, Ben Finney <bignose+hates-spam@benfinney.id.auwrote: Maybe. I'm no expert on Debian packaging. However, exarkun@boson:~$ ls -l...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.