?
Solved

ADO, adAsyncExecute

Posted on 2001-06-06
4
Medium Priority
?
2,183 Views
Last Modified: 2013-11-23
any one have example how to execute storedprosedur in ADO connection adAsyncExecute option ??
i need to give animasi to my from when waiting storedprosedure done.

Thanks.
0
Comment
Question by:whitelotus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 6

Expert Comment

by:sharmon
ID: 6162393
Private Function Test()
  Dim objCmd As ADODB.Command
  Set objCmd = New ADODB.Command
 
  With objCmd
    .ActiveConnection = "DSN=YourDSN"
    .CommandTimeout = 180
    .CommandText = "YOUR_SP"
    .CommandType = adCmdStoredProc
    .Execute , , adAsyncExecute
  End With
 
  Do While (objCmd.State And adStateExecuting) = adStateExecuting
    DoEvents
  Loop
 
  Set objCmd = Nothing
End Function
0
 
LVL 6

Accepted Solution

by:
sharmon earned 400 total points
ID: 6162396
You can show an animation or use a progress bar or whatever during the loop.
0
 
LVL 6

Expert Comment

by:sharmon
ID: 6168582
If it wasn't want you wanted, you didn't need to close the question, you should have responded with whatever you might have needed.

Shannon
0
 

Expert Comment

by:irman_herdiana
ID: 20191285
am using that method, but it's seem make my application crash,  it happened when am add the skinframwork from codejock activex..does fall because the sync method or bug in codejock activex?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month11 days, 2 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question