Advertisement

03.17.2008 at 01:11PM PDT, ID: 23248294
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

VBA Make Access wait API is not working

Asked by rebelscum0000 in Access Coding/Macros, Microsoft Access Database, Visual Basic Programming

Tags: , , , ,

Dear Experts,

Access 2002 w/SP3
Access 2003 w/SP2
Windows XP Pro w/SP2

The API: Shell and Wait, by Terry Kreft is not working to me

http://www.mvps.org/access/api/api0004.htm

I know I can not post the API by Terry Kreft, but I can post what changes I did in the original API
------
Function ShellWait(Pathname As String, Optional WindowStyle As Long)
End Function
-----

This is my code in a module

'Initialize New Event Make_Access_Wait
    'Make Access wait till It is done with other application
    MsgBox "Rutina ShellWait"
    Call ShellWait("C:\Program Files\Dups\Batch Files\HashIt.bat")

I really need to Access wait till I'm done with my other application. But due is not working I had to add another API

API: Make code go to Sleep by by Dev Ashish
 
http://www.mvps.org/access/api/api0021.htm


'Implement a wait period in Access where the duration can be
    'increased/decreased bychanging the constant to a corressponding higher/lower value
    MsgBox "Rutina sSleep"
    Call sSleep(9000)

This API is working fine, the problem is the code does a hash in different directories, some of them with a lot of files to hash, others with a few

In this way if the user selects a directory with few files to hash the user has to wait 9000 milliseconds. In other hands if the user selects a directory with a lot of files also he has to wait the same time, but some directories could take more than 1 hour to complete the entire process

I don not want to use the API: Make code go to Sleep by Dev Ashish for this reason, and I do know what I its wrong with the API by Terry Kreft or why is not working for my code

I first want to know why the API by Terry Kreft is not working for me, and if there is another alternative to make Access wait till the entire process ends.
Thanks in advance for any help
Regards,
Antonio Macias
Start Free Trial
 
Loading Advertisement...
 
[+][-]03.17.2008 at 01:19PM PDT, ID: 21145746

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.17.2008 at 03:44PM PDT, ID: 21146958

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.17.2008 at 04:18PM PDT, ID: 21147278

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Microsoft Access Database, Visual Basic Programming
Tags: Microsoft, Access, 2002 w/SP3 2003 w/SP2, Visual Basic For Applications, Access VBA API
Sign Up Now!
Solution Provided By: PaulHews
Participating Experts: 1
Solution Grade: A
 
 
[+][-]03.17.2008 at 04:28PM PDT, ID: 21147319

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.17.2008 at 04:42PM PDT, ID: 21147391

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.17.2008 at 04:58PM PDT, ID: 21147466

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.22.2008 at 04:07AM PDT, ID: 21185572

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628