Solved

Reserved error(-1517)

Posted on 2003-10-21
6
257 Views
Last Modified: 2012-08-14
Can somebody explain what this error is?
We have a billing, payroll and reporting application that we distribute to about 250 users with an mde every 2 weeks when changes are made. Last week when we sent our new copy out, about 60 users started getting this problem in their app (possibly more were effected). When we replaced the app with the exact same copy it fixed the problem. Also a repair and compact solves the problem. The error pops up in different places accross the app. I would like more information about the possible causes so that we do not have a repeat of this issue this week when we promote a new version. I'll split points and possibly add some more, for the best suggestions.
0
Comment
Question by:iabaker
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 17

Accepted Solution

by:
walterecook earned 500 total points
ID: 9593776
while this error is itself a bit cryptic, I believe it most often (if not always) stems from a linked table error.  That would help explain why it pops up intermittantly throughout your app.  You may want to try to isolate it though to see if it is ONE table or many tables.  If it is one there may be something quirky about a field name or something.
What is your BE and how are you connecting to it?

That being the case, I'd run some code on open of the database to refresh the links.
You may also consider checking the validity of the link before certain events, too.

Hope that helps
Walt
0
 
LVL 32

Expert Comment

by:jadedata
ID: 9594138
Hey! iabaker,

  Negative error numbers are usually generated by another application and passed back to Access for reporting.
  There should be a text explanation coming thru with the error number, and MAYBE, if your lucky the name of the app ACTUALLY raising the error.

  What external applications, OCX controls or such does this distributable play with during a runtime session?

regards
Jack
0
 
LVL 3

Author Comment

by:iabaker
ID: 9600002
hey guys,

Jadedata, it actually comes through as an error no 3000. the description says "Reserved error (-1517); their is no description for this error."

I think it is a link problem, walter. we've got some startup code that was recently put in that is changing the type of a field on a few linked tables by creating a new field with the new type, updating the new field with the old field data, deleting the old table and renaming the new. Somehow that seems to be screwing up the link in the app. I can't seem to recreate the error on my machine. I have inserted some code to refresh the links after the type change, its testing it that is the problem. Is there a way to get more information about the link. possibly a way to test to see if it is bad? I can open the table fine manually, but the code won't run on it until the link is refreshed.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 17

Expert Comment

by:walterecook
ID: 9600075
Well,
one direct way to test the link in code is try to open a query based on the linked table.  Or try a dlookup on the table itself:
somevar = dlookup("someField", "theTableName")
if that line bombs, clearly it can't open the table.

Walt
0
 
LVL 32

Expert Comment

by:jadedata
ID: 9601408
Add a time-out loop of a few seconds after the changes are made to the tables in the linked file.
It may be that the code engine is over-running Access's ability to refresh the system objects tables before continuing to the code that then tries to use these objects.

Also force the change to the link before you move on to using the objects
currentdb.tabledefs("TableName").connect = currentdb.tabledefs("TableName").connect
(goofy as it may look, it could work....)

It isn't happening on your own machine probably because it knows you'll be very disappointed with it if it screws up.

0
 
LVL 3

Author Comment

by:iabaker
ID: 9628060
It was the link that was messed up. Thanks for the help.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

730 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