Call Shell("C:\MWV\findreplace.exe", 1) Intermitently works!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using Access 2000 to call the following EXE from a form onclick event: Call
Shell("C:\MWV\findreplace.exe", 1). If I create a new form and run the code
it works fine but after I close the database and then re-open the code does
not process. The EXE works fine from a DOS prompt and when double clicked in
the folder. This has worked in the past but has just started to malfunction.

Any pointers in a direction to solve would be appreciated.

Thanks in advance
 
Thanks for the response Alex but it does the same thing. I put your code in
to a new form and everything works fine until I close the databse and
re-open. Then the window opens put the exe code does not execute.

Do you have any other suggestions?

Thanks again

Darren
 
It runs fine from the cmd prompt, I can run it multiple times in a row and
the exe excutes with no problem. It's just really strange I can import the
same form with the same code and buttons into the database run it and it
works fine but as soon as I close the database and re-open it doesn't work
until I re-create the form again.

I even tried on a couple of other machines with Access 2000 and Access 2003
and the same thing happens.

I'm baffled any other suggestions?

Thanks,

Darren
 
Back
Top