473,666 Members | 2,258 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 10686
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
20446
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 need to distribute one single database to others and cannot have any linked tables. The only way I've figured out is to run the linked tables through Make Table queries to make a temporary table, delete the linked table, and
7
11826
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 tables that involve a number field as the primary key, the data is returned successfully. For tables that involve a character field (e.g. CHAR(3) or VARCHAR(10)) as the primary key, I have the correct number of rows returned, but the data displayed...
15
7238
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? Thank you.
1
1901
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 acceptance see next table:
2
6007
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, and the linked tables are successfully created. I use the data from these linked tables in several forms. All works great until I close the Access frontend and open it again. When I try to use the forms, I get an error message: "Could not...
1
1940
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 good. In case both mdb,s are stored on a server the response time of the frond-end mdb is faraway from acceptable. If I import the linked tables in the frond-end mdb on the
25
45746
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 the future, so the front-end application must have a way to keep up with this (instead of manually linking them).
2
8255
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 in Access become read only and I can't add new records to them. If I go into design view (in Access) the tables have lost their Primary Key. In SQL, they still work just fine. The only way I have found to get the links working again is to delete...
4
2626
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 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.
0
8356
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8639
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6192
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5663
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2769
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 we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1772
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.