02-06-2015 04:19 PM
Hello,
I need some help.
I've made a program and it works fine on my computer, but multiple users will be using program simultaneously, each one on his own computer conected over local network to mine computer (database is on my computer in shared folder).
When I try to access data on database (path is path of shared folder) i'm getting error 5013 (no database). The problem occurs only when I'm trying to read something from MS access database but not if I try to read data from .txt file, then it works fine...
I'm using ADO Tools
Can someone help me, I would be very greatful?
🙂
Solved! Go to Solution.
02-06-2015 08:31 PM
02-07-2015 08:05 AM
Thank you for reply, but I think I explained wrong.
The situation is like this:
We have 5 computers on network and on one computer is ms access archives file (archiver.mdb) in shared directory (other computers have access to that directory). I was planing to install executable on each computer and have access to that archive from witch ever computer I desire... I've done some research and I found that is posible to achive this with ODBC, but I do not know how to do or implement ODBC in my code... Can you or anyone help me with this?
02-07-2015 08:30 AM
02-07-2015 10:22 AM
OK, is there any example how to do that?
02-07-2015 11:53 AM
02-07-2015 11:55 AM
02-07-2015 12:54 PM
Thanks to you Dennis I've managed to figure it out.
I'll explain this for future generations 🙂
1) I've created DSN. To do that open ODBC Data Source Administrator:
- for 64 bit app C:\Windows\System32\odbcad32.exe
- for 32 bit app C:\Windows\SysWOW64\odbcad32.exe
In System DSN tab click Add.. then choose Microsoft Access Driver (*.mdb) (If you do not have this on list download that drivers from web) --> FINISH.
Enter Data Source Name (mine is Test2) --> Select... --> now because the MS Access database is on shared folder on remote PC go to Network... --> Browse... and select that shared folder --> Finish. Now you'll see all .mdb files on that folder and you choose your database --> OK --> OK --> OK
2) Now in block diagram you connect string "DSN=your_dsn_name;" (mine was Test2) to ConnectionString connector of ADO Connection Open.vi
It worked for me.
Pis
02-07-2015 04:37 PM