473,473 Members | 2,032 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to trace macros

19 New Member
I use macros very rarely. I have this application I inherited that uses macros very heavily. This has caused some issues but this one is a doozie. I made a change in the system and had to modify a report. I changed the name. When I try to run the report from a report, a macro launches. What is odd is that an error occurs for a macro not part of the particular group. If this were VBA, I would put in break points to see where the failure occurs. I am not sure how to do this for macros. Are there any macro mavens out there who can assist?

Thanks.
Jul 3 '07 #1
1 2419
missinglinq
3,532 Recognized Expert Specialist
Well, you've discovered the two of the three major reasons for not using macros! They're cryptic; it's a real pain to go inside and see what they do (as opposed to simply going into one code editor). And they allow no Error Handling! The third reason is that they're very limited in what they can do and how they do it!

Without knowing exactly what chagnes you've made, or how your db is set up, it's difficult to say exactly what's going on. My guess is that the macro you're using is calling another macro, which is where the error is occuring. As to "tracing macros" you can either open each macro in Design View to see what it does or use the Documenter.

Goto Tools - Analyze - Documenter - Macros
Click on SelectAll then OK.

Good Luck!

Linq
Jul 3 '07 #2

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

Similar topics

21
by: Chris Reedy | last post by:
For everyone - Apologies for the length of this message. If you don't want to look at the long example, you can skip to the end of the message. And for the Python gurus among you, if you can...
699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
16
by: mike420 | last post by:
Tayss wrote: > > app = wxPySimpleApp() > frame = MainWindow(None, -1, "A window") > frame.Show(True) > app.MainLoop() > Why do you need a macro for that? Why don't you just write
37
by: michele.simionato | last post by:
Paul Rubin wrote: > How about macros? Some pretty horrible things have been done in C > programs with the C preprocessor. But there's a movememnt afloat to > add hygienic macros to Python. Got any...
3
by: Stephen Sprunk | last post by:
On a project I'm working on, I ran across the following macros: /* assume s is struct stream *, s->p is char, v is unit16_t or uint32_t */ #define in_uint16_le(s,v) { v = *((s)->p++); v +=...
2
by: news.microsoft.com | last post by:
Hi all. If I wanted to write something so that, when an exception was thrown, and the stack unwound, the stack trace was captured with the values of the parameters (instead of just the parameter...
33
by: Robert Seacord | last post by:
When writing C99 code is a reasonable recommendation to use inline functions instead of macros? What sort of things is it still reasonable to do using macros? For example, is it reasonable to...
4
by: khan | last post by:
Hi I am in need to write a function which prints the stack trace of current program The need is that if any exception occurs then apart from error message we want to print the stack trace of...
1
by: aimslife | last post by:
Hi, I created simple DLL project using vs2k5. I need to print debug statements in ouput window during debug mode. I tried to use TRACE macro in project and include windows.h header file but...
0
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,...
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,...
1
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...
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
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.