473,796 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A97: Is there a way to exclude certain modules from being compiled?

MLH
If I test the integrity of my code, opening a module, clicking
Debug, Compile All Modules, the process stops at the first
occurrence of a coding error. Can I skip that and go on
somehow (you know, if the err occurs in a form module
I'm testing but don't wanna fix right now)?

How about a Debug, Compile All Modules Except For...
???
Nov 13 '05 #1
4 1456
On Sun, 24 Jul 2005 08:05:00 -0400, MLH <CR**@NorthStat e.net> wrote:
If I test the integrity of my code, opening a module, clicking
Debug, Compile All Modules, the process stops at the first
occurrence of a coding error. Can I skip that and go on
somehow (you know, if the err occurs in a form module
I'm testing but don't wanna fix right now)?

How about a Debug, Compile All Modules Except For...
???

Hi
look up conditional compiling (or conditional compilation) in help.

I have sometimes used this when I have similar code in Access and VB, or for DAO and ADO.

Nov 13 '05 #2
MLH
Thank-you, Polite Person. Although it was not what I really
would like to have seen, it made for interesting reading and
I'll play with it in the future.
Nov 13 '05 #3
On Sun, 24 Jul 2005 08:45:57 -0400, MLH <CR**@NorthStat e.net> wrote:
Thank-you, Polite Person. Although it was not what I really
would like to have seen, it made for interesting reading and
I'll play with it in the future.


You're quick at replying!
I'm watching the F1 race and made my post during one of the adverts

Nov 13 '05 #4
MLH <CR**@NorthStat e.net> wrote in
news:6l******** *************** *********@4ax.c om:
If I test the integrity of my code, opening a module, clicking
Debug, Compile All Modules, the process stops at the first
occurrence of a coding error. Can I skip that and go on
somehow (you know, if the err occurs in a form module
I'm testing but don't wanna fix right now)?

How about a Debug, Compile All Modules Except For...
???


Compile compiles all *open* modules, and all modules on which those
modules depend.

What that means is that if you have Module1 open and compile it, and
it uses a fuction/sub in Module2, which is closed, but saved in a
non-compilable state, then Module1 won't compile.

There is no getting around this restriction because it's absolutely
necessary.

Why do you have lots of non-compilable code lying around?

If it's because of conversion from Access 2, I wonder why the code
didn't get properly converted in the initial conversion? My
experience with Access 2 conversion to A97 was that it was pretty
simple to correct the parts that didn't compile after conversion --
took about an hour to step through all the code and fix the
problems.

One possible solution would be to move the non-converted code into a
single module, but any code that calls functions/subs in that
non-compilable will not compile.

Fix the code.

Be done with it.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #5

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

Similar topics

36
2645
by: Tim Churches | last post by:
If a compiled Python extension module B includes code from some other software A which is licensed only under the GPL, do other Python programmes, C, which import module B also need to be licensed under a GPL-compatible license (assuming C is/are to be distributed to third parties)? I think the answer is yes, both from a lay (IANAL) legal and moral point-of-view, but I am interested in hearing any arguments to the contrary. Note that I...
0
3067
by: David W. Fenton | last post by:
Today I was working on a hideous old app that I created a long time ago that does a lot of showing/hiding/resizing of fields on one of the forms. I had used constants to store reference values for many of the top/height/left settings. I noticed that some of the constants were defined by using other constant values, and I was impressed that VBA could do that. Here's an example: Const row1Top = 1.0208 * 1440 ' top of first row Const...
22
2360
by: Bradley | last post by:
Has anyone else noticed this problem? I converted the back-end to A2000 and the performance problem was fixed. We supply a 97 and 2000 version of our software so we kept the backend in A97 to make upgrading simple for users. We've done it like that for years but a new client has been having severe performance issues... solved by converting the backend to 2000. -- regards, Bradley
2
1381
by: Ralph2 | last post by:
Hello Some time ago with the help of this group I made an amateurish database that catalogs all of our shop drawings. Works really well ( I think) but management, in its infinite wisdom, wants a "professional" database. So, they have contracted out a local programmer and his first "beta" will not run.. He coded the *.mde in Access 2002 (in spite of being informed that we have A97). Now he wants to run an installer that will allow us to...
10
1440
by: MLH | last post by:
MyLocPhone: Format$(,"(@@@) @@@-@@@@") The above expression is a field in a select query. On one XP box (the dev box, of course). It works fine. On two other XP boxen - it fails saying "Function isn't available in expressions in query expression ..." ==> citing the MyLocPhone: Format$(... as the problem. The query is evaluated on-click of a command button. If it returns records, there are things to be done. I have installed the A97...
5
1625
by: MLH | last post by:
I had a form (Form12) with a code error in it. I knew it was there. I even planned on fixing it (someday). I needed a comprehensive test of all my code so I clicked Debug, Compile All Modules. My standard modules were all good but the compilation test halted in a Class Module on Form12 due to the error. OK, I thought, don't really wanna screw around with this right now, so I'll take it out-a-the equation. I chose it on the database window...
8
1483
by: MLH | last post by:
Have a look at the procedure below. In particular, note lines 1 and 21... Private Sub JudHrngReqBtn_Click() On Error GoTo Err_JudHrngReqBtn_Click Dim ThisForm As String ThisForm = Me.Name Dim DocName As String DocName = "frmJudicialHearingRqstNotice"
9
1785
by: MLH | last post by:
Trouble is, it doesn't happen every time. Yesterday, for example, it happened only once and not again afterward. Some days ago, a similar situation. Today, well - I tried 7 times straight to open the report and each time, A97 shuts down. The seemingly hit 'n miss nature of the error is intriguing. All I've been able to determine is that if I allow the report to be opened from within code using this line... DoCmd.OpenReport...
6
3320
by: MLH | last post by:
Can decompiling an A97 mdb result in fixing minor nasties that may be responsible for some premature terminations of A97 (We are sorry. MS Access 97 needs to close.... messages). I've found the following recommendation and was wondering if any of you have used the technique and why you did? To decompile start Access with the /decompile switch. To do this from windows do a Start, Run and then where it asks for the name of the program to...
0
9680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10455
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10228
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10173
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10006
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.