Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

____________________________________________

http://www.pophamcafe.com

I am starting a developers section, more tutorials than anything.

Posted

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

____________________________________________

http://www.pophamcafe.com

I am starting a developers section, more tutorials than anything.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...