|
-
Mar 30th, 2006, 07:16 PM
#1
Thread Starter
Addicted Member
Data Report Showing
Im only using data report right now. I'm having a problem with it, I observed that a while the report is STILL showing (fetching records and stuff), the execution of the program continues. Example code:
VB Code:
Report1.Show
dSQL = "delete from ph_queue where ph_username = '" & Trim(mLogUsername) & "'"
EstablishRecordsource dRstCtrl, dSQL, dConCtrl, adOpenStatic, adCmdText
'EstablishRecordsource is a function I created, its for processing a command
What I intend to do is for "EstablishRecordsource" function to execute right after the report has been displayed, and not before it. The problem here is as the program executes Report1.Show, it continues the execution on the succeeding line even if the report is yet to be dislayed. As you can see I'm deleting something on the database, so the report will malfunction.
Is there any way for me to test or an event in the report that will tell me that the report has finished retrieving the data and it is actually show in the screen.
Im quite stuck. Thanks for the help.
EDIT: I just need confirmation regarding this events. I know I might be able to use these things:
On Data Report:
Activate()
AsyncProgress()
QueryClose()
On Connection:
ConnectComplete()
Disconnect()
ExecuteComplete()
Will any of these events could be used for what I need? I just need a brief explanation on these events. Thanks
Last edited by charmedcharmer; Mar 30th, 2006 at 08:14 PM.
C++ Programming is overwhelming.
Dont let it overwhelm you or you'll fall into the oblivion of its perfection
-
Apr 6th, 2006, 10:36 AM
#2
Junior Member
Re: Data Report Showing
Use Report.show vbmodal.
This will stop the execution of the code until the Report is closed.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|