Solved

ADO, adAsyncExecute

Posted on 2001-06-06
4
2,146 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
  • 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 200 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now