473,387 Members | 1,745 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.

Docmd.OpenReport CRASHES Access '97

Hi-
I have a relatively simple report that I open in an Access '97 VBA
procedure, using the

Docmd.OpenReport "rptName", acViewNormal

syntax. The problem is that doing this usually crashes Access! No
error message is given, the thing just vanishes! Why? How do I fix
this?

TIA...
Nov 12 '05 #1
2 3202
Am Thu, 15 Apr 2004 09:59:39 -0700 schrieb Jonathan Goldman:
Hi-
I have a relatively simple report that I open in an Access '97 VBA
procedure, using the

Docmd.OpenReport "rptName", acViewNormal

syntax. The problem is that doing this usually crashes Access! No
error message is given, the thing just vanishes! Why? How do I fix
this?

TIA...


Hi,

does the report open when you doubleclick it in the Database
windows?
If this error comes up try to repair and compact the Database
even open it in design-view and save it with another name.
Maybe use another Resolution for the Graphics-driver.
HTH
Karpi
<fluctuat nec mergitur>

Nov 12 '05 #2
Jonathan Goldman wrote:
Hi-
I have a relatively simple report that I open in an Access '97 VBA
procedure, using the

Docmd.OpenReport "rptName", acViewNormal

syntax. The problem is that doing this usually crashes Access! No
error message is given, the thing just vanishes! Why? How do I fix
this?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The report object is probably corrupted. One way to fix corrupted
forms/reports is to:

1. Make a copy of the suspected report.
2. Run the new copy.

If the crash occurs again try this:

1. Create a new blank report.
2. Open the corrupted report in design view.
3. For each section on the corrputed report create the same section on
the new report.
4. Copy the corrupted report's RecordSource to the new report.
5. Copy the corrupted report's VBA to the new report's VBA.
6. Recreate the Group/Sorting on the new report, the same as the
corrupted report.
7. Save the new report.
8. Close the corrupted report.

Compile & compact the database. Try running the new report.

If an error occurs create a new Access project/database file & copy all
the objects from the old file to the new one. Compile & compact. Try
running the suspected report.

If failure - start at the report's basics: Does the query run correctly
by itself? Does the query & a new minimumly designed report run
correctly? Etc., until you get to a complete working rpt.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQH7nPYechKqOuFEgEQK+mACgx12JWuD8roNCwn0aYIFOh6 Sa8ssAnicY
b+7ap2UntZwZNbx4JRpN+NXa
=9/aS
-----END PGP SIGNATURE-----

Nov 12 '05 #3

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

Similar topics

1
by: Andrew | last post by:
Hi All: I am using Access2000 and I find that the command to open an Access report in preview mode is very slow: DoCmd.OpenReport rptABC, acViewPreview, "", "" The scenario is this: - The...
2
by: Jonathan Goldman | last post by:
Hi- I have a relatively simple report that I open in an Access '97 VBA procedure, using the Docmd.OpenReport "rptName", acViewNormal syntax. The problem is that doing this usually crashes...
1
by: LoopyNZ | last post by:
Hi there, I've converted an Access 97 front end to Access 2000, but when I try to run a VBA DoCmd.OpenReport (e.g. DoCmd.OpenReport "rpt_programme_listing") line, Access completely crashes...
3
by: news.onet.pl | last post by:
Hello! I have a question concerning to open the reports. I know that DoCmd.OpenReport is a obsolete form of opening the reports, but how to implement opening reports in VB using another VB code?...
2
by: enough2Bdangerous | last post by:
Access database (file format 2002-2003) generates reports with docmd.openreport but returns 3011 runtime error related to the printer. Switching Windows default printer is a work around but need to...
3
by: enough2Bdangerous | last post by:
access runtime error 3011 on docmd.openreport -------------------------------------------------------------------------------- Access database (file format 2002-2003) generates reports with...
4
by: Simon | last post by:
Dear reader, The syntax for Docmd.OpenReport is: OpenReport(ReportName, View, FilterName, WhereCondition, WindowMode, OpenArgs) Example The following example prints Sales Report while...
4
by: robtyketto | last post by:
Greetings, I originally used a button on a from created via the button wizard (access 2007) to run my report which was based on a query. Since I wanted to add some validation I removed the...
4
by: gazza10001 | last post by:
Hi i hope you can help my company uses access and has modified for its needs usually what happens is you serach for the invoice by its number and then it brings all the information up such as...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.