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

in which report object event does a certain activity occur?

Apologies in advance...I'm sure this is a trivial question...

Access 97.

Situation is this:
1. VBA code sets the recordsource property of a report object; the
recordsource is a querydef which is an SQL Server stored procedure
2. VBA code does DoCmd.OpenReport specifying the report whose
recordsource property was set as described in #1
3. report opens/displays as expected

My questions are:
1) at what point in the process does the stored procedure get
invoked?
2) does the stored proc get invoked as soon as the report object's
recordsource property get set? (based on what I observed when stepping
through in debu, I'm guessing it does NOT get invoked when the
recordsource property gets set)
3) does the stored proc get invoked in one of the report object's
events that fire when the DoCmd.OpenReport statement gets executed?
If so, which event: Open, Load, Activate, Current?

Thank you.

Feb 22 '08 #1
1 1762
On Fri, 22 Feb 2008 09:42:34 -0800 (PST), mi************@yahoo.com
wrote:

1: I'm pretty sure it's when you open the report, after the Open event
and before the Load event. Step through your code in the debugger, and
have SQL Server Profiler running at the same time.
Then report back to us so we can all learn.

Thanks,

-Tom.
>Apologies in advance...I'm sure this is a trivial question...

Access 97.

Situation is this:
1. VBA code sets the recordsource property of a report object; the
recordsource is a querydef which is an SQL Server stored procedure
2. VBA code does DoCmd.OpenReport specifying the report whose
recordsource property was set as described in #1
3. report opens/displays as expected

My questions are:
1) at what point in the process does the stored procedure get
invoked?
2) does the stored proc get invoked as soon as the report object's
recordsource property get set? (based on what I observed when stepping
through in debu, I'm guessing it does NOT get invoked when the
recordsource property gets set)
3) does the stored proc get invoked in one of the report object's
events that fire when the DoCmd.OpenReport statement gets executed?
If so, which event: Open, Load, Activate, Current?

Thank you.
Feb 23 '08 #2

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

Similar topics

4
by: Mark D. Anderson | last post by:
About a month ago Richard Cornford did an interesting analysis of a memory leak in jscript (internet explorer) when there are "circular" references between DOM objects and (real) jscript objects:...
5
by: Charles A. Lackman | last post by:
I am working on a application that has many custom made dlls. Actually, for this app each dll is a different form. I am able, with no problem to reference and instantiate them to use their public...
3
by: John Baker | last post by:
Hi: I have a situation where I have a series of time records (one or more per day) for a number of projects. Each record has an identification for the activity conducted during the period...
5
by: Tom Louchbaum | last post by:
When I preview my Access 2000 Report it looks fine. When I Email the report using DoCmd.SendObject acSendReport, "Report", acFormatRTF, "To Address", , , "Subject", , False the resulting...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
3
by: Dom | last post by:
Hi, I have a werid problem with a subreport. If someone can help me out I'd be very grateful! Based on results from a query, the visibility of textboxes and labels in a subreport are set to...
3
by: deejayquai | last post by:
Hi I've created a crosstab query and displayed it as a sub-report in my main report. This is fine until the data changes and the column names become incorrect. I know I have to create a...
2
by: Nelson | last post by:
Here is the discussion that is already discussed that I am looking for. After visiting the link below I am getting the following code. My question is in which client side script event I can set the...
12
by: Andrew Poulos | last post by:
With the following code I can't understand why this.num keeps incrementing each time I create a new instance of Foo. For each instance I'm expecting this.num to alert as 1 but keeps incrementing. ...
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: 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...
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
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
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
tracyyun
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...

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.