Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

How to access database on remote computer?

$
0
0

I have two equal databases. The first one is install on the local machine and the second one on the virtual machine. I have no problem while connecting the database on local machine

  1. _AccessOpen(@ProgramFilesDir & "\MyFolder\DB\MyDB.mdb")

To access database on the virtual machine I share database folder and do the same

  1. _AccessOpen("\\111.222.3.44\MyFolder\DB\MyDB.mdb")

But I receive an error "The requested action with this object has failed.:

$o_doc = $o_object.OpenDatabase($s_FilePath, $Options, $ReadOnly, $Connect)
$o_doc = $o_object.OpenDatabase($s_FilePath, $Options, $ReadOnly, $Connect)^ ERROR"

 

From another hand I can access text file from DB folder without any problem:

  1. ShellExecute ("\\111.222.3.444\DB\TestFile.txt")

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>