R
robert demo via AccessMonster.com
I have an application that is split into a front end and a backend. The
application is designed for facilities at specific sites. The upshot of my
question is: How can I use the current front-end design to access multiple
sites.
Let's use an example (the following is a hypothetical example).
1) Client 1 is Site = New York City, back-end filename: NY_be.mdb
2) Client 2 is Site = Albany, back-end file name: Albany_be.mdb
Clients 1 and 2 know nothing of the other. Let's say that a new client, The
State of New York, wants to be able to view data from both New York City and
Albany using a single copy of the current front end. The backends for both of
these sites have the exact same table names. So with the current front end,
how can I link to both Client1 site and Client2 site. The back-end file names
are different, but the tables contained within those backend files are named
exactly the same.
So, how can I link to both clients such that when the code tries to retrieve
data for Table A, it looks for data in both copies of Table A, one contained
in NY_be.mdb and one in Albany_be.mdb. The idea is to combine the data.
Logistically, the idea is that each site would simply e-mail a copy of their
back-end to a user for The State of New York, who would then try to link to
each back-end file. The file names are different, but the problem is that the
table names in each file are the same.
I do not use the built-in MS Access linking and importing features. I have my
own routine that functions quite nicely. The way my application links to the
back-end at startup is that it looks for the existance of just one of the
tables in the backend. Also, the linking is complicated by the fact that, for
security reasons, I have revoked all permissions to the back-end tables and
am using RWOP queries in the front end.
I'm finding that, at the moment, if I try to link to each back-end file, the
last back-end file linked to is the only one that stays linked. Perhaps this
result is just due to the way I'm linking to the back-end files. But, still,
I don't see how the front end would be able to link to two copies of Table A.
Although each Table A contains different data, the table name is still the
same.
Is there anyway I can handle this with a minimimal amount of changes to the
front-end code? At the moment, I think it is safe to say that, if both Table
A tables were combined, that each row could be uniquely returned using the
current front end code.
Thanks for any help and suggestions.
application is designed for facilities at specific sites. The upshot of my
question is: How can I use the current front-end design to access multiple
sites.
Let's use an example (the following is a hypothetical example).
1) Client 1 is Site = New York City, back-end filename: NY_be.mdb
2) Client 2 is Site = Albany, back-end file name: Albany_be.mdb
Clients 1 and 2 know nothing of the other. Let's say that a new client, The
State of New York, wants to be able to view data from both New York City and
Albany using a single copy of the current front end. The backends for both of
these sites have the exact same table names. So with the current front end,
how can I link to both Client1 site and Client2 site. The back-end file names
are different, but the tables contained within those backend files are named
exactly the same.
So, how can I link to both clients such that when the code tries to retrieve
data for Table A, it looks for data in both copies of Table A, one contained
in NY_be.mdb and one in Albany_be.mdb. The idea is to combine the data.
Logistically, the idea is that each site would simply e-mail a copy of their
back-end to a user for The State of New York, who would then try to link to
each back-end file. The file names are different, but the problem is that the
table names in each file are the same.
I do not use the built-in MS Access linking and importing features. I have my
own routine that functions quite nicely. The way my application links to the
back-end at startup is that it looks for the existance of just one of the
tables in the backend. Also, the linking is complicated by the fact that, for
security reasons, I have revoked all permissions to the back-end tables and
am using RWOP queries in the front end.
I'm finding that, at the moment, if I try to link to each back-end file, the
last back-end file linked to is the only one that stays linked. Perhaps this
result is just due to the way I'm linking to the back-end files. But, still,
I don't see how the front end would be able to link to two copies of Table A.
Although each Table A contains different data, the table name is still the
same.
Is there anyway I can handle this with a minimimal amount of changes to the
front-end code? At the moment, I think it is safe to say that, if both Table
A tables were combined, that each row could be uniquely returned using the
current front end code.
Thanks for any help and suggestions.