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

Access "synopsis" function?

I'm a Notes admin tasked with fixing an Access problem. I hope someone
will be gracious enough to help.

The database is getting a 3420, object not defined, and I need to find
all the places where the object is referenced.
In Notes, I'd just get a synopsis which shows all executable lines of
code in the entire database.

Does Access have a similar function?

Regards,
MVSGuy (I am waaaay outside my comfort zone here.)

Jul 3 '06 #1
9 1770
"mvsguy" <kk*****@fuse.netwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
I'm a Notes admin tasked with fixing an Access problem. I hope someone
will be gracious enough to help.

The database is getting a 3420, object not defined, and I need to find
all the places where the object is referenced.
In Notes, I'd just get a synopsis which shows all executable lines of
code in the entire database.

Does Access have a similar function?

Regards,
MVSGuy (I am waaaay outside my comfort zone here.)
When you receive the error message you should get a "debug" option. Choose
this to find the offending line of code. Post it here along with any other
code in the module to give us as clue.

Regards,
Keith.
www.keithwilby.com
Jul 3 '06 #2
Keith Wilby wrote:
When you receive the error message you should get a "debug" option. Choose
this to find the offending line of code. Post it here along with any other
code in the module to give us as clue.
The code is as follows -
' Export report r_MA_BERP Preliminary z88
DoCmd.OutputTo acReport, "r_MA_BERP Preliminary z88",
"RichTextFormat(*.rtf)", "c:\urs_ar\BERP Prel CS.rtf", True, "", 0

I can see it wants to send "r_MA_BERP Preliminary z88" to
c:\urs_ar\BERP Prel CS.rtf.

The problem I'm having is finding where "r_MA_BERP Preliminary z88" is
supposedly created.

Is there a way I can expose all executable code in an Access database
to track down where an object is instantiated?

Regards,
MVSGuy

Jul 3 '06 #3
"mvsguy" <kk*****@fuse.netwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
Keith Wilby wrote:
>When you receive the error message you should get a "debug" option.
Choose
this to find the offending line of code. Post it here along with any
other
code in the module to give us as clue.

The code is as follows -
' Export report r_MA_BERP Preliminary z88
DoCmd.OutputTo acReport, "r_MA_BERP Preliminary z88",
"RichTextFormat(*.rtf)", "c:\urs_ar\BERP Prel CS.rtf", True, "", 0

I can see it wants to send "r_MA_BERP Preliminary z88" to
c:\urs_ar\BERP Prel CS.rtf.

The problem I'm having is finding where "r_MA_BERP Preliminary z88" is
supposedly created.

Is there a way I can expose all executable code in an Access database
to track down where an object is instantiated?

Regards,
MVSGuy
I've had a quick look in the help under "OutputTo" and it seems that
"r_MA_BERP Preliminary z88" is the data container. It should be a stored
report (look on the "reports" tab in the db window) which runs from the code
and its resultant data exported to "c:\urs_ar\BERP Prel CS.rtf".

Regards,
Keith.
www.keithwilby.com
Jul 3 '06 #4
I've had a quick look in the help under "OutputTo" and it seems that
"r_MA_BERP Preliminary z88" is the data container. It should be a stored
report (look on the "reports" tab in the db window) which runs from the code
and its resultant data exported to "c:\urs_ar\BERP Prel CS.rtf".
Thank you, I was able to puzzle out that much from the help file as
well.

The problem is when I try to look at the report, the Design & Report
buttons are clickable but do nothing when they are clicked.

Pardon me if I keep whipping the same horse, but is there a
synopsis-like function that shows all the executable code in an Access
database? (including reports?)

kk

Jul 3 '06 #5
"mvsguy" <kk*****@fuse.netwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
>
>I've had a quick look in the help under "OutputTo" and it seems that
"r_MA_BERP Preliminary z88" is the data container. It should be a stored
report (look on the "reports" tab in the db window) which runs from the
code
and its resultant data exported to "c:\urs_ar\BERP Prel CS.rtf".

Thank you, I was able to puzzle out that much from the help file as
well.
Sorry to try to teach granny how to suck eggs ;-)
The problem is when I try to look at the report, the Design & Report
buttons are clickable but do nothing when they are clicked.

Pardon me if I keep whipping the same horse, but is there a
synopsis-like function that shows all the executable code in an Access
database? (including reports?)
I'm not sure what you mean by "shows all the executable code in an Access
database" - the code is available to view in each object (form, report,
module). What concerns me is that clicking on "design" for the report does
nothing, it's a conditions I've never encountered. Have you tried a
compact/repair or importing the report into a clean db file and see if you
can get it into design view from there?

Keith.
Jul 3 '06 #6
"mvsguy" <kk*****@fuse.netwrote in
news:11**********************@m73g2000cwd.googlegr oups.com:
The problem is when I try to look at the report, the Design &
Report buttons are clickable but do nothing when they are clicked.
This suggests that you're using an MDE, so I'm not sure why you ever
saw the code that was throwing the error.
Pardon me if I keep whipping the same horse, but is there a
synopsis-like function that shows all the executable code in an
Access database? (including reports?)
Each object has its own module. If you want to search all of them,
open any code module, hit Ctrl-F (the FIND dialog), enter the string
you want to search for and then choose ENTIRE DATABASE as the scope
of the FIND operation.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 3 '06 #7
"mvsguy" <kk*****@fuse.netwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
>
>I've had a quick look in the help under "OutputTo" and it seems that
"r_MA_BERP Preliminary z88" is the data container. It should be a stored
report (look on the "reports" tab in the db window) which runs from the
code
and its resultant data exported to "c:\urs_ar\BERP Prel CS.rtf".

Thank you, I was able to puzzle out that much from the help file as
well.

The problem is when I try to look at the report, the Design & Report
buttons are clickable but do nothing when they are clicked.

Pardon me if I keep whipping the same horse, but is there a
synopsis-like function that shows all the executable code in an Access
database? (including reports?)
The executable code that displays/prints report is not exposed. The VBA code
is in class Modules for Forms and Reports, and other VBA code is in standard
Modules. It is quite probable that you have, not the source .MDB file, but a
"compiled" .MDE in which the VBA code is not available.

If you were expecting object-oriented code that "instantiates" the Form or
Report, that's just not the way Access works.

DoCmd.OpenReport is the statement used to open a Report from VBA code. The
Report itself is designed visually, and snippets of VBA code may be defined
to run when certain events occur.

Larry Linson
Microsoft Access MVP
Jul 4 '06 #8
This thread is continued under a new heading that better reflects the
problem.

http://groups.google.com/group/comp....dc94bd5c8cc35a

Regards,
kk

Larry Linson wrote:
"mvsguy" <kk*****@fuse.netwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
I've had a quick look in the help under "OutputTo" and it seems that
"r_MA_BERP Preliminary z88" is the data container. It should be a stored
report (look on the "reports" tab in the db window) which runs from the
code
and its resultant data exported to "c:\urs_ar\BERP Prel CS.rtf".
Thank you, I was able to puzzle out that much from the help file as
well.

The problem is when I try to look at the report, the Design & Report
buttons are clickable but do nothing when they are clicked.

Pardon me if I keep whipping the same horse, but is there a
synopsis-like function that shows all the executable code in an Access
database? (including reports?)

The executable code that displays/prints report is not exposed. The VBA code
is in class Modules for Forms and Reports, and other VBA code is in standard
Modules. It is quite probable that you have, not the source .MDB file, but a
"compiled" .MDE in which the VBA code is not available.

If you were expecting object-oriented code that "instantiates" the Form or
Report, that's just not the way Access works.

DoCmd.OpenReport is the statement used to open a Report from VBA code. The
Report itself is designed visually, and snippets of VBA code may be defined
to run when certain events occur.

Larry Linson
Microsoft Access MVP
Jul 10 '06 #9
mvsguy wrote:
I've had a quick look in the help under "OutputTo" and it seems that
"r_MA_BERP Preliminary z88" is the data container. It should be a stored
report (look on the "reports" tab in the db window) which runs from the code
and its resultant data exported to "c:\urs_ar\BERP Prel CS.rtf".

Thank you, I was able to puzzle out that much from the help file as
well.

The problem is when I try to look at the report, the Design & Report
buttons are clickable but do nothing when they are clicked.

Pardon me if I keep whipping the same horse, but is there a
synopsis-like function that shows all the executable code in an Access
database? (including reports?)

kk
Not that I know of but it would be relatively easy to create one.

Jul 10 '06 #10

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

Similar topics

0
by: Steve Carrow | last post by:
Hello, I'm trying to write a web app where an XML source file is transformed by an XSL document via a Java 1.4.1 servlet. Development is under WSAD 5 on Windows 2000. The XSL document refers to...
21
by: Alf P. Steinbach | last post by:
Just because there seems to be a lack of post-standard _correct_ tutorials: <url: http://home.no.net/dubjai/win32cpptut/>. Disclaimer: written this evening so perhaps there are "bugs" in the...
388
by: maniac | last post by:
Hey guys, I'm new here, just a simple question. I'm learning to Program in C, and I was recommended a book called, "Mastering C Pointers", just asking if any of you have read it, and if it's...
13
by: baumann.Pan | last post by:
when define char *p = " can not modify"; p ='b' ;is not allowed, but if you declare p as char p = "can modify"; p = 'b'; is ok? why?
13
by: Andrew | last post by:
Hello, I am trying to find a way to take the contents of a directory and write it into a file. I have a directory that has several hundred text files, and I want to create a file containing all...
2
by: contractsup | last post by:
Environment: $ uname -a AIX <withheld2 5 000100614C00 $ db2level DB21085I Instance "<withheld>" uses "32" bits and DB2 code release "SQL08024" with level identifier "03050106"....
4
by: CBFalconer | last post by:
regis wrote: Why don't you read the documentation (or source) from whomever supplied you that (non-standard) function? -- : Chuck F (cbfalconer at maineline dot net) :...
14
by: Anna | last post by:
I try to put 8 int bit for example 10100010 into one character of type char(1 octet) with no hope . Could anyone propose a simple way to do it? Thank you very much.
21
by: mdh | last post by:
Hi All, There is a line in the discussion of K&R (section 7-5) that says ... (end of 2nd paragraph, about the middle of the page)...in connection with the description of getc and putc...that ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: 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
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
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...

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.