I am having a problem with an Access 2000 report getting data from SQL
Server 2000. Here are the specifications for it:
RecordSource: a stored procedure (tested via query analyzer and working
correctly - permissions properly set)
InputParameters : just one - provided by a function call that is
functioning properly
When I run the report, it hits the Load event, runs the function to get
the input parameter, then immediately goes to the Close event. We had
similar behavior before, but that was due to the database owner not
being specified before the name of the stored procedure in the
RecordSource property. I have code inserted to run on Report Error, but
it isn't being triggered. I set a watch on Err to see if it changes
while the report runs, but it doesn't change.
Visually, the user doesn't see anything happen. The report never
actually appears on the screen. Codewise, it never hits the Activate,
NoData, Deactivate, or Page events.
I have pretty much run out of areas to look. I would appreciate any
hints, tips, or any words people might have to offer, even if someone
thinks it isn't relevant. Any experience similar to this might provide
me a clue to resolve this problem.
Thanks in advance for any assistance you might be able to offer.
Regards,
Rick Caborn 2 2549
Rick Caborn wrote: I am having a problem with an Access 2000 report getting data from SQL Server 2000. Here are the specifications for it:
RecordSource: a stored procedure (tested via query analyzer and working correctly - permissions properly set)
InputParameters : just one - provided by a function call that is functioning properly
When I run the report, it hits the Load event, runs the function to get the input parameter, then immediately goes to the Close event. We had similar behavior before, but that was due to the database owner not being specified before the name of the stored procedure in the RecordSource property. I have code inserted to run on Report Error, but it isn't being triggered. I set a watch on Err to see if it changes while the report runs, but it doesn't change.
Visually, the user doesn't see anything happen. The report never actually appears on the screen. Codewise, it never hits the Activate, NoData, Deactivate, or Page events.
I have pretty much run out of areas to look. I would appreciate any hints, tips, or any words people might have to offer, even if someone thinks it isn't relevant. Any experience similar to this might provide me a clue to resolve this problem.
Thanks in advance for any assistance you might be able to offer.
Regards, Rick Caborn
If I were in your place, I'd open up the report wizard and create a
quick, who-cares-how-it-looks report based on your current record
source. I would then run the report to see if it displays. If it
doesn't, then open up the recordsource and see if it displays. IOW, see
if the obvious is at fault.
If the report displays, then add the input parameter function. If it
fails, you know the source of the problem. BTW, you don't mention what
the input parameter is used for.
Without knowing what is the source of the problem it is hard to fix it.
I would do this step by step until the problem occurs....or I'd start
removing things until it starts working.
Rick Caborn wrote: I am having a problem with an Access 2000 report getting data from SQL Server 2000. Here are the specifications for it:
RecordSource: a stored procedure (tested via query analyzer and working correctly - permissions properly set)
InputParameters : just one - provided by a function call that is functioning properly
When I run the report, it hits the Load event, runs the function to get the input parameter, then immediately goes to the Close event. We had similar behavior before, but that was due to the database owner not being specified before the name of the stored procedure in the RecordSource property. I have code inserted to run on Report Error, but it isn't being triggered. I set a watch on Err to see if it changes while the report runs, but it doesn't change.
Visually, the user doesn't see anything happen. The report never actually appears on the screen. Codewise, it never hits the Activate, NoData, Deactivate, or Page events.
I have pretty much run out of areas to look. I would appreciate any hints, tips, or any words people might have to offer, even if someone thinks it isn't relevant. Any experience similar to this might provide me a clue to resolve this problem.
Thanks in advance for any assistance you might be able to offer.
Regards, Rick Caborn
I had something like this happen to me on what seemed a straightforward
report. It opened ok then when some old data was restored it would open
then shut immediately. Basically a case of bad data. The restored data was
using an older version of a table I had changed in the new version. Thus
the code couldn't execute probably and the recordsource and report never
came together and thus the problem.
Maybe something similar is happening to you... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 Cline:
http://www.15seconds.com/issue/981216.htm
|
by: Rich Anton |
last post by:
I am a newbie to Access. I have used Lotus Approach much over the
years, but not Access. What I am trying to do is to create an opening
screen with a bar menu that will basically allow me to select what I
want to do, whether it be to generate a specific report or enter data
to a specific form or run a specific macro. It would be great if...
|
by: Peter Frost |
last post by:
Please help
I don't know if this is possible but what I would really like to do is
to use On Error Goto to capture the code that is being executed when
an error occurs.
Any help would be much appreciated.
Thanks in advance
|
by: Wayne Aprato |
last post by:
I have a database that was written in Access 2003 using the Access
2000 file format. When I run the mdb in Access 2003 everything works
fine. If I run it in Access 2000 the timer event won't fire on my
forms. This is crazy. Has anyone seen this behaviour?
Any help appreciated.
|
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 want my users to be able to select a report, click on a command
button on a form, which will then automatically create the report as a
pdf file and...
| |
by: Neil Ginsberg |
last post by:
I have a strange situation using Access to automate a Word mail merge. Using
Access 2000 and Word 2000, the code opens Word, opens the document in Word,
sets a table
in the calling Access application as the data source, and then performs a
merge. Everything works fine.
However, when a user uses it in Access 2002 and Word 2002, an extra...
|
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 where the job is
running, the job runs sucessfully, PDF files got generated, everything
is good. If I scheduled the job to run at the time that I am...
|
by: Stumped |
last post by:
I'm using Access 2000 on a Dell PC with 256MB of RAM, and it freezes
up almost immediately after opening the database. The database is on an
internet server, but no-one else who connects notices any problems,
it's only on this PC.Actually its a refurbished PC, the original
Dell(same model) worked perfectly. But now as stated, upon opening the...
|
by: Mark Gold |
last post by:
Hi! We have a VB application using Crystal Reports 6 that has worked
successfully on hundreds of systems for over 10 years. Now, on one
network, the application and access database does not close. It seems
to hang on the command.
When we open the application an peruse the screens without opening up
a report (using crystal reports), the...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| | |