cpopham Posted December 20, 2004 Posted December 20, 2004 I do not know the correct place for this thred, but hopefully someone can help me here. I have a piece of code that luanches an Access database. When the database lauches it imports some inforation from Paradox table and does soem other things and then the Access database automatically closes. Here is my vb .net code for starting the Access database: Dim strPath As String = "P:\ForACC\Parking\FAPark.mdb" '/// your file's path goes here. System.Diagnostics.Process.Start(strPath) When I try running this code, I get the following error: An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.dll Additional information: An error occurred in sending the command to the application Any Ideas? I have used this code before to launch notepad and never had a problem. Thanks, Chester Quote ____________________________________________ http://www.pophamcafe.com I am starting a developers section, more tutorials than anything.
donnacha Posted December 22, 2004 Posted December 22, 2004 Does you app have the rights to open the database or to launch Access. Quote Hamlet
cpopham Posted December 22, 2004 Author Posted December 22, 2004 I fixed this another way. I started the database as a process and since the database self closes I did a wait for end and it works fine now... Chester Quote ____________________________________________ http://www.pophamcafe.com I am starting a developers section, more tutorials than anything.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.