473,418 Members | 2,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

linked tables access - sql

Hi,

I have inherited an access userinterface that links to sql server
tables through ODBC. The SQL server database contains data related to
villages in my country and is populated by my collegues.

Now I have to create an access data file for each village and deliver
it to the local governments ... so they can see only their data using
the same userinterface.

I've made a little program that extracts the data by village from sql
server into access. So I have one access data mdb for each village,
with only their data, but now the userinterface has to access the
access database, no longer the SQL Server via ODBC.

I wondered if I could accomplish this without touching the UI mdb by
using two types of datafiles, one pointing to the ODBC and one with
it's own data, but that doesn't seem possible:

If I rename the name of the linked table in the datafile and I make a
linked table to the ODBC with the original table name the
userinterface does not accepts this. See the screenshot to see what I
have done : testlinked is my UI and testlinked_be is the data mdb.

I've tried to dynamically link tables when starting up the
userinterface, but since I'm a .NET developer with nearly no Access
experience I did not manage to do so.

Anyone experienced the same problem or anyone with a workaround
suggestion? I hoped I could stay with one UI so there's no need to
update two versions when some business logic needs to be adapted ...
but now I'm afraid there's no way around, maybe I can't without 2
versions of the userinterface ... one pointing to the ODBC and one
pointing to access data.

Thanks in advance,
Perre.
Jun 27 '08 #1
4 2606
Somewhere in the mists of time I think I recall, maybe, TTBOMR, this
setup:

Create an ADP linked to the SQL DB (via OLEDB of course, not ODBC). This
ADP file acts only as a conduit.
Create an MDB and link to the Tables in the ADP. The MDB can have its own
local tables as well of course.

Maybe this will help with what you are trying to do; maybe not.
xperre van wilrijk <xp****@gmail.comwrote in news:7df743cd-9f59-4741-
93***************@k37g2000hsf.googlegroups.com:
Hi,

I have inherited an access userinterface that links to sql server
tables through ODBC. The SQL server database contains data related to
villages in my country and is populated by my collegues.

Now I have to create an access data file for each village and deliver
it to the local governments ... so they can see only their data using
the same userinterface.

I've made a little program that extracts the data by village from sql
server into access. So I have one access data mdb for each village,
with only their data, but now the userinterface has to access the
access database, no longer the SQL Server via ODBC.

I wondered if I could accomplish this without touching the UI mdb by
using two types of datafiles, one pointing to the ODBC and one with
it's own data, but that doesn't seem possible:

If I rename the name of the linked table in the datafile and I make a
linked table to the ODBC with the original table name the
userinterface does not accepts this. See the screenshot to see what I
have done : testlinked is my UI and testlinked_be is the data mdb.

I've tried to dynamically link tables when starting up the
userinterface, but since I'm a .NET developer with nearly no Access
experience I did not manage to do so.

Anyone experienced the same problem or anyone with a workaround
suggestion? I hoped I could stay with one UI so there's no need to
update two versions when some business logic needs to be adapted ...
but now I'm afraid there's no way around, maybe I can't without 2
versions of the userinterface ... one pointing to the ODBC and one
pointing to access data.

Thanks in advance,
Perre.
Jun 27 '08 #2
Hi,

I have succeeded another approach. I've created a local table with
the names of all linked tables and I have a startupform which allows
the user to create the linked tables based on the data in the linked
tables. It seems you cannot relink tables linked to ODBC to .mdb and
vice versa. So I added an additional option to drop the linked tables
and to recreate them ... linking to ODBC or linking to .mdb.

Thanks for your suggestion Lyle.
Peter.
Jun 27 '08 #3
"xperre van wilrijk" <xp****@gmail.comwrote
. . . It seems you cannot relink tables linked to
ODBC to .mdb and vice versa. So I added an
additional option to drop the linked tables
and to recreate them ... linking to ODBC or
linking to .mdb.
That was my experience, years ago, linking Informix tables to Access 2.0 via
ODBC.

It turned out, in our situation, not to be particularly burdensome.
Jun 27 '08 #4

You (an Larry) are correct. ODBC tables can not be simply
"re-cinked". The linkages have to be dropped then (re-) created.

Dev has a rather good example of this at the Access Web:
http://www.mvps.org/access/tables/tbl0010.htm

On Thu, 19 Jun 2008 02:45:43 -0700 (PDT), xperre van wilrijk
<xp****@gmail.comwrote:
>Hi,

I have succeeded another approach. I've created a local table with
the names of all linked tables and I have a startupform which allows
the user to create the linked tables based on the data in the linked
tables. It seems you cannot relink tables linked to ODBC to .mdb and
vice versa. So I added an additional option to drop the linked tables
and to recreate them ... linking to ODBC or linking to .mdb.

Thanks for your suggestion Lyle.
Peter.
--
Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
2
by: Internet Arrow Limited | last post by:
Hi, I have a requirement to write an access application that must run under access97 and access2K. Some users will use Acess2K to access data that will also be accessed by Access97 users. The...
2
by: Robert McGregor | last post by:
Hi all, I've got a Front End / Back End database that was working just fine. One day i opened the FE to find that if I tried to open one of the linked tables from the database window, nothing...
4
by: Neil Ginsberg | last post by:
I have ODBC linked tables to a SQL 7 database in an A2K database. The linked tables do not have the password stored in them, so the first time the user accesses them, they need to enter the SQL...
7
by: Joe | last post by:
I am using Access 2003 and are linking to an Oracle 9i ODBC datasource (using Oracle ODBC drivers). After linking the tables in Access, I inspect the data contained in the linked tables. For...
15
by: brettclare | last post by:
I have linked a large SQL Server table to Access, however 'only' 2,195,439 records are shown and are available to query. Can I increase the size (cache??)/number of records showing in Access? ...
3
by: Zlatko Matić | last post by:
Hi! What happens with linked tables if they were linked using File DSN, when I copy the Access file on some other PC without File DSN ? What is the difference between DSN on linked tables and...
2
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database,...
10
by: Jim Devenish | last post by:
I have a split front end/back end system. However I create a number of local tables to carry out certain operations. There is a tendency for the front end to bloat so I have set 'compact on...
3
by: Bret Kuhns | last post by:
I recently started a co-op/internship at a company and they are looking to migrate a large legacy supported application from OLEDB to SQL Server. I'm doing prelim work in experimenting with the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.