Advertisement

03.17.2008 at 01:11PM PDT, ID: 23248294
[x]
Attachment Details

VBA Make Access wait API is not working

Asked by rebelscum0000 in 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

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...
20080716-EE-VQP-32 / EE_QW_2_20070628