Solved

Reserved error(-1517)

Posted on 2003-10-21
6
251 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
  • 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now