[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Access SQL link table update problem

Posted on 2011-10-24
6
Medium Priority
?
243 Views
Last Modified: 2012-05-12
I have 2 Access databases; each has a linked table set up to the exact same SQL table. Both are trusted ODBC connections using the same DNS. One allows the table to be updated the other does not.

The only differences in the connections string are as follows:
>> One the works has: “APP=Microsoft Data Access Components”
>> One the doesn’t has:  “APP=2007 Microsoft Office system”

I believe there is a table size limitation with “APP=2007 Microsoft Office system” because when the table was smaller the update worked fine.

Question: How can I update the connection sting on the one that fails to use “APP=Microsoft Data Access Components”? I tried the refresh link table but that had no effect on APP
I can’t delete and re-add the linked table because the user has a ton of queries written over it.

Thanks

0
Comment
Question by:Bob Hoffman
  • 3
  • 3
6 Comments
 
LVL 44

Expert Comment

by:Leigh Purvis
ID: 37022512
You are perfectly safe to delete and recreate the linked table.  The queries in question are merely definitions.  Unless you attempt to go into design view while the tables are missing and save the reformatted result - nothing will happen to them.

That said, the part of the connection string you're interested in should be playing no part.
You don't say what error the user is getting.  If this is an exact copy of the same file (i.e. why are the connection strings different then)?  If there is a PK identified in the local linked table.
In relinking - it may be that you are prompted for the PK if there isn't one (which would be terrible design btw ;-)

You could create your linked table via code such as here.
0
 
LVL 8

Author Comment

by:Bob Hoffman
ID: 37024837
There isn't any error message, when the table is open there is message in the status bar saying updates are not allowed.

“If this is an exact copy of the same file (i.e. why are the connection strings different then)?” << and using the same DSN… great question, I have no clue

There is a PK.

I’ll copy the .mdb and try to delete and re-add the table, if it works I’ll do it over the production .mdb.
Thanks,
0
 
LVL 44

Accepted Solution

by:
Leigh Purvis earned 2000 total points
ID: 37025285
>> There is a PK.
In the local Access linked table?  (i.e. if you the linked table in design view - there is a PK identified?)
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
LVL 8

Author Comment

by:Bob Hoffman
ID: 37060225
sorry for the delay. You're absolutely correct there is NOT a PK. Is there a way I can add one without deleting and re-adding the linked table?
0
 
LVL 8

Author Closing Comment

by:Bob Hoffman
ID: 37060246
The missing PK was the problem. Disregard my question about adding a PK without deleting and re-adding the linked table, that works fine. The user will just need to get over their fears of all there queries disappearing. Thanks.
0
 
LVL 44

Expert Comment

by:Leigh Purvis
ID: 37065718
Unfounded fears. :-)

Cheers.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question