473,383 Members | 1,805 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,383 software developers and data experts.

Object dependencies on macro?

I need to move a fairly complicated (100+ report/query calls) to a
different database. How do I get an "object dependencies" from a
macro?

Regards,
MVSGuy

Jul 24 '06 #1
6 4110
"MVSGuy" <kk*****@fuse.netwrote in
news:11**********************@i42g2000cwa.googlegr oups.com:
I need to move a fairly complicated (100+ report/query calls) to a
different database. How do I get an "object dependencies" from a
macro?
Eh?

Does the report depend on a macro?

For code dependencies, it's easy -- import the reports, then try to
compile the project. If there are outside code dependencies, you'll
get a compile error.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 24 '06 #2
For code dependencies, it's easy -- import the reports, then try to
compile the project. If there are outside code dependencies, you'll
get a compile error.
My apologies, perhaps I should have stated my case more clearly. I
need to copy a large macro with all the supporting objects from one
database to another. I'm doing this because there is a serious problem
with the original database. (Crashing when attemting to copy a report,
etc.)

A mass export/import will not work since for whatever reason, the
problem propogates to the new database.

Is there a function that allow me to specify a macro and give me a
report of all the supporting, reports, tables & queries?

I realize I can copy the macro over, run it and cut/paste whatever
object it spits out. This is pretty slipshod and could take quite some
time.

Is there an elegant way of doing this?

Regards,
MVSGuy

Jul 24 '06 #3
"MVSGuy" <kk*****@fuse.netwrote in
news:11*********************@p79g2000cwp.googlegro ups.com:
>For code dependencies, it's easy -- import the reports, then try
to compile the project. If there are outside code dependencies,
you'll get a compile error.

My apologies, perhaps I should have stated my case more clearly.
I need to copy a large macro with all the supporting objects from
one database to another. I'm doing this because there is a
serious problem with the original database. (Crashing when
attemting to copy a report, etc.)
Macros are an abomination. No serious Access developer would ever
use them, as there is no error handling.

I would try converting the macro to code, then reviewing the code to
see if that makes it clearer.
A mass export/import will not work since for whatever reason, the
problem propogates to the new database.

Is there a function that allow me to specify a macro and give me a
report of all the supporting, reports, tables & queries?
Not that I know of, but I don't use macros because they are
basically there for beginners, not for serious developers.
I realize I can copy the macro over, run it and cut/paste whatever
object it spits out. This is pretty slipshod and could take quite
some time.

Is there an elegant way of doing this?
Unfortunately, when you're working with an amateur, inelegant design
(i.e., one that depends on macros), you can't really expect
elegance.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 24 '06 #4
MVSGuy wrote:
I need to move a fairly complicated (100+ report/query calls) to a
different database. How do I get an "object dependencies" from a
macro?
Assuming that you are using an mdb and a >=2000 version of Access the
code found at
http://www.ffdba.com/downloads/Save_...ts_As_Text.htm
MAY help.
It should copy make a copy of everything in the db to a new db in a
sub-folder to the folder where them db resides.
It also creates a text-manifestation of all the Access objects in the
db.

If there is are errors in one or more of the objects it should correct
the error if its something like a bad compilation, or baulk when it
tries to recreate the object. When it baulks it should give you a
message that will allow you to identify the object.

If you decide to use this, use the download link to get the dat file.
You should be able to import it into your VBA project easily, or simple
copy and paster the code. Save the new code module before you run it.
TTBOMK the code is harmless; regardless make a copy of your db and run
it from there to be extra safe.

I'm ambivalent about posting this as ... many posters describe their
problem to the extent that one is only guessing about the cure. Other
posters ... sigh.

Jul 24 '06 #5
Of course,

http://www.ffdba.com/downloads/What_..._An_Object.htm

trys to answer your question

but I am !!!!Guessing!!!! that the other helps with your problem.

Jul 24 '06 #6
Lyle Fairfield wrote:
http://www.ffdba.com/downloads/What_..._An_Object.htm

This is best answer I've had so far!! I've added "On Error Resume
Next" since the rookie creating objects liked to put slashes in object
names. (And no, there was no formal naming structure. Sad.)

After I run the script, I do a simple search on the directory to find
all references to an object.

Thank you specifically to Lyle and to all the other experts who tried
to help,
MVSGuy

Jul 28 '06 #7

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

Similar topics

0
by: Kenneth Baltrinic | last post by:
I am getting the following error when deserializing an object that has a couple of dozen dependant objects in its object graph. Anyone who can suggest where I might begin to look to resolve problem...
5
by: Eric Lilja | last post by:
Using a macro, can I change what type an object is being cast to? I know, the initial respone to question might be an instinctive "ugly, don't even think about it!" or "don't use macros at all",...
2
by: Bernard Dhooghe | last post by:
When a Function returning a scalar is written in C, it is easy to change the code, by just creating a new loadable object. When the code is written in SQL procedure language, how to replace the...
2
by: wh | last post by:
I'm not sure what I am trying to do is correct but within a global object I'd like to store an object with a dependency on a specified directory. I am aware that I am able to add a reference to a...
6
by: jpetrang | last post by:
We use VS6.0 to support our automated build environment, and we'd like to move to something that is currently supported. One aspect of VS6.0 is part of the "Generate Makefile" feature, which it...
8
by: nandakumar.raghu | last post by:
Hi, I am creating a #defined class like - #define BEGIN_TEST_MAP(testmapname) class testmapname\ {\ testmapname(){}\ testmapname(std::ofstream resultfile)\ {\ resultfile << "<Test name=\""...
14
by: Jeroen | last post by:
Hi all, I've got a question about writing a library. Let me characterize that library by the following: * there is a class A which is available to the user * there is a class B that is used...
3
by: cgineste | last post by:
/* Hello everyone, I am trying to impose some strong coupling between different objects. This, to a large extent, directly challenge the principle of encapsulation in C++. Note that the...
7
by: yurec | last post by:
Hi I can't compile //#include <boost/function.hpp> class boost::function; UIStl * LoadStlFromAnotherProject(const CString & i_project_name, boost::function<bool (MSAXReader &,UIObject...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.