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

A2K - reports not opening correctly on one pc

I have a reports form, frmReports where users can select a report and then
click Open.

On just one machine I have this problem; the report opens very quickly
(though I only see a flash of something, this happens so quickly I don't see
the actual data or any formatting) and then it goes back to frmReports.
Therefore my chosen report does not open. One report works ok - I can't see
why this is.

Here's how it's all organised;

Each report is opened like so;

stDocName = "rptMyReport"
Me.Visible = False 'this hides frmReports
DoCmd.OpenReport stDocName, acPreview
Each report runs Docmd.Maximize in the Open event after some other code (not
the cause of the problem).
Finally In the close event of each report we have;

Private Sub Report_Close()
DoCmd.Restore
Forms!frmReports.Visible = True
End Sub

The mde I supplied works fine on other pcs including my own. The problem
still happened when the user upgraded to a new pc. So the common factor
would seem to be the printer and/or printer driver. Beyond that I can't
fathom this out. It's tricky for me to test the pc so the more info I have
before I go in the better.

Any suggestions?

Many thanks
Martin

Nov 12 '05 #1
5 1192
Ben
Make sure a printer is installed on the computer that you are trying it on (and a default is set)

I had this problem once and came to the conclusion that access cannot preview a report if no printers are installed.

hope this helps

Ben

Nov 12 '05 #2
Ben wrote:
Make sure a printer is installed on the computer that you are trying
it on (and a default is set)

I had this problem once and came to the conclusion that access cannot
preview a report if no printers are installed.

hope this helps

Ben


That's certainly true but the user does have a printer installed. It's just
very weird, particularly as one report DOES preview ok.
Nov 12 '05 #3
Ben
Perhaps the report has unknowingly been set up to use a specific printer (which doesnt exist).

Select the report that doesnt work from the database window

Go FILE->PAGE SETUP
Go to the Page Tab
Make sure default printer tab is selected as oppose to the use Specific Printer

Failing that, try a compact and repair on the database

Hope this helps too

Ben


Nov 12 '05 #4
Ben wrote:
Perhaps the report has unknowingly been set up to use a specific
printer (which doesnt exist).

Select the report that doesnt work from the database window

Go FILE->PAGE SETUP
Go to the Page Tab
Make sure default printer tab is selected as oppose to the use
Specific Printer

Failing that, try a compact and repair on the database

Hope this helps too

Ben


Thanks for replying. I hope it sorts it too but I'm not hopeful! Just
extraordinary behaviour and I wish I knew what was causing it. I might take
a laptop with a copy of the db and hook it up to the printer, see if it
plays up, then troubleshoot from there.
Nov 12 '05 #5
Deano wrote:
I have a reports form, frmReports where users can select a report and
then click Open.

On just one machine I have this problem; the report opens very quickly
(though I only see a flash of something, this happens so quickly I
don't see the actual data or any formatting) and then it goes back to
frmReports. Therefore my chosen report does not open. One report
works ok - I can't see why this is.

<code snipped>
OK, just answering my own problem for the record. Turns out it was
completely unrelated to report issues/printers/drivers etc. Just had some
bad data (one table had lost it's records) which meant the reports couldn't
complete - there's no logical reason for this to have happened though there
were a few upgrades in which the error could have been introduced . The
other report that could be viewed did not depend on this table.

Took me 4 hours at the user's pc with my laptop to work this out (:
Nov 12 '05 #6

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

Similar topics

1
by: Joris Kempen | last post by:
Hi people, I know that the question has come around sometimes: How to open an Access Report using ASP and export it to for example RTF. I'm trying to implement the first method of David...
4
by: dschl | last post by:
Has anyone had any luck getting Crystal Reports 8.5 to work with the Sql Server 2000? I keep getting a "Unable to open Database" error. I've tried opening with either the .Connect property and...
3
by: Deano | last post by:
I've been mulling over how to prevent users from clicking back onto my form after they have run a report. I want them to close the report first. The simple solution which I have tested...
7
by: DD | last post by:
Hi I want the user to be able to view all reports from a form either by way of a list box or dropdown or ?? any help please DD
5
by: Deano | last post by:
I have a reports form, frmReports where users can select a report and then click Open. On just one machine I have this problem; the report opens very quickly (though I only see a flash of...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
3
by: Bookreader | last post by:
Is it possible to return a code to Visual Basic when an Access reports completes successfully and a different code when a report fails? Thank you.
4
by: PraveenKadkol | last post by:
Hi, My Development is in almost final stages, now i am facing problem with the reports. I am generating MsAccess Reports based on the selected Parameters, while generating Report I am opening ...
3
by: joelpollock | last post by:
I'm having trouble continuously page numbering a large report in MS Access. The report is made up of three separate Access reports which I join together at the end. In the past I have opened the...
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
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?
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.