Results 1 to 2 of 2

Thread: Data Report Showing

Threaded View

  1. #1

    Thread Starter
    Addicted Member charmedcharmer's Avatar
    Join Date
    Sep 2003
    Posts
    211

    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:
    1. Report1.Show
    2. dSQL = "delete from ph_queue where ph_username = '" & Trim(mLogUsername) & "'"
    3. EstablishRecordsource dRstCtrl, dSQL, dConCtrl, adOpenStatic, adCmdText
    4. '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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width