473,511 Members | 13,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Create Local Tables From Linked Tables Automatically?

2 New Member
Here is my situation. I have ODBC Rights to a SQL database but I have 4 users who need to get to this information but because they are contractors they are not allowed to get there own ODBC access.

So I wanted to create an Access Database using Linking Tables and then Create Local Tables from the Linking Tables. Then they would have a front end view to my newly created tables.

Does anyone know how to do this where the data will automatically update the tables will new data or just re populate the data with an event?
Jan 15 '08 #1
4 10670
zaidlig
45 New Member
Here is my situation. I have ODBC Rights to a SQL database but I have 4 users who need to get to this information but because they are contractors they are not allowed to get there own ODBC access.

So I wanted to create an Access Database using Linking Tables and then Create Local Tables from the Linking Tables. Then they would have a front end view to my newly created tables.

Does anyone know how to do this where the data will automatically update the tables will new data or just re populate the data with an event?
Access sees all linked tables as local. So the question is what are you allowed to make visible to Access. You could have the SQL database periodically create an Excel report that is linked to tha Access database - everytime the report is updated the changes will be visible in the Access front end.
Jan 16 '08 #2
sethington
2 New Member
That still doesn't help my situation. Because I have the only ODBC connection to the SQL database. If I create a front end database view to my back end access database view. It still tries to look for the ODBC connection and then fails.

So what I'm thinking is to have an automated process that will run a make table query on my linking table data. Then their front ends will point to those tables. Has anyone ever done something like this before?
Jan 16 '08 #3
jcopeland38053
12 New Member
That still doesn't help my situation. Because I have the only ODBC connection to the SQL database. If I create a front end database view to my back end access database view. It still tries to look for the ODBC connection and then fails.

So what I'm thinking is to have an automated process that will run a make table query on my linking table data. Then their front ends will point to those tables. Has anyone ever done something like this before?
Would a possible solution be to import the tables into Access? This could be done on your workstation. If you want to ensure that they are seeing the latest and greatest, your would need to create a small app that run on your machine to open/delete tables/reimport tables. If you are using Windows, you could then schedule this app to run on a regular basis. You would need to build into your app that if the ldb file exist either skip the update or send a message to the users to exit the mdb.
Jan 16 '08 #4
jaxjagfan
254 Recognized Expert Contributor
That still doesn't help my situation. Because I have the only ODBC connection to the SQL database. If I create a front end database view to my back end access database view. It still tries to look for the ODBC connection and then fails.

So what I'm thinking is to have an automated process that will run a make table query on my linking table data. Then their front ends will point to those tables. Has anyone ever done something like this before?
You will have to run this from your db.

In your database you will link to SQL tables (already done i suppose). In your database create the local tables via a make table query.

Create a new db for the contractors. Import the tables from your db you created with the make table query as well as the other objects (forms, queries, reports, etc). You will have to rename the tables to match the linked names as they are in your database - if you have objects that rely on table names (forms, queries, etc).

Delete the local copies of the tables you have in your db and now link to the same tables in the contractors db.

If you are just appending new recorrds to the contractors db then create a query to do so.

If you are replacing the data in the contractors db then you will need a delete query to delete the data. Change the original make table query (make sure it is pointing to the linked contractors tables since changing names) to an append query.

Once the contactors db is built you only have to update it.

For simplicity you can create a command button:

Expand|Select|Wrap|Line Numbers
  1. Private Sub myButton_Click()
  2.  
  3. Docmd.SetWarnings False
  4. 'Repeat for all tables needed
  5. DoCmd.OpenQuery "mydeletequery" 'if any deletes needed
  6. DoCmd.OpenQuery "myappend"
  7. Docmd.SetWarnings True
  8.  
  9. End Sub
  10.  
FYI - Your SQL DBA's can link to an Access DB with DTS and update the contractors copy via their daily scripts much easier and faster.
Jan 16 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
20431
by: pinballjim | last post by:
Hello everyone, I'm looking for a simple way to create a local copy of a linked table. I've got a database that links about 10 tables from other databases. This works fine on my machine, but I...
7
11817
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
7215
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? ...
1
1894
by: S. van Beek | last post by:
Dear reader, How to increase the response in case of working with linked tables, program in frond end mdb and tables in back end mdb. For possible combinations and their response...
2
5995
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,...
1
1937
by: Simon | last post by:
Dear reader, Working with linked tables gives me some troubles. Both mdb's, frond-end and back-end are in deferent folders but on a stand alone pc delivers an reasonable response time say...
25
45686
by: bubbles | last post by:
Using Access 2003 front-end, with SQL Server 2005 backend. I need to make the front-end application automatically refresh the linked SQL Server tables. New tables will be added dynamically in...
2
8243
by: Bobby | last post by:
Hi, Not sure if this is Access, SQL or ODBC. I have a SQL database with an Access Front End. They are linked with ODBC. Occasionally (it's happened 3 times in 4 months) some of the linked tables...
4
2620
by: xperre van wilrijk | last post by:
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...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7517
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
5673
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
4743
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...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.