Hey everyone,
So my situation is this.. (which im sure im going to be told is a stupid idea... but i think it's what i can actually afford..)
- My PC has all data and tables. (Split, but located on C: drive)
- This DB is also linked to 3 tables (Customers, Claims and Scripts) which are located on dropbox in a folder according to a Company name.
eg.
Dropbox/WB
Dropbox/CA
Dropbox/PP
The 2 digit ID tags are acompanies name./
Now what happens is each folder has LOGIC.accdb in it, which i connect to.
I first check to see if the .laccdb file exists. If it doesn't, then i copy some data from that accdb file.
What i want:
On PC1 on a form I have:
WB - BtnImport
CA - BtnImport
PP - BtnImport
So when i press the BtnImport for WB the linked tables for the 3 mentioned above, switch the Folder from where it is to "C:\Dropbox\" & CompanyID & "\"
Which results in C:\Dropbox\WB\ being the target now, and i can use the data.
Then when i press the CA import it then disconnects from WB and connects to CA...
I've seen a bunch of codes for checking tables exist in the link etc etc, but i didn't know how to manipulate the code for my above purpose.
Thanks for any ideas, or even a push and shove in the right direction.
Gangel.
PS. I do understand that Dropbox is not a server, it is for backups, but the important part here is that it is an easy way to share the data and as long as we don't connect and use the data at the same time, (Which i'm using checks for .laccdb) then i can use that data for the 0.5 seconds it takes to run my query and disconnect.