查找引用访问对象的位置

时间:2016-05-18 08:09:21

标签: ms-access

我有一个古老的数据库,我试图分裂。每当过程结束时,它都会给我这个错误:

https://gyazo.com/eb35294d8d271d084a691454559e378e

哪个翻译意味着这些内容:“访问'数据库引擎无法找到对象”ay_faltas“。请确保该对象存在且访问路径已正确列出。”

这不是数据库中的对象,我不知道如何找到对象的引用位置,以便我可以删除它。

2 个答案:

答案 0 :(得分:0)

我建议免费使用MS Access插件http://www.accessdependencychecker.com/ 它允许查找对象,模块,查询等中提到的所有引用。

答案 1 :(得分:0)

这是我用来查找所有日期并更改日期的vb脚本 - 您可以修改它以找到您的字符串

Function update()
Dim DB As Database
Dim QD As QueryDef
Dim S As String

Set DB = CurrentDb
For Each QD In DB.QueryDefs
    S = QD.SQL
    If InStr(S, "2009") > 0 Then
        S = Replace(S, "2009", "2010")
        QD.SQL = S
    End If
Next QD
MsgBox ("Done")
End Function

或者,您可以查看一些(未记录的)系统表。在导航窗格中,查找导航选项并启用"显示系统对象"。两个系统表可能会有所帮助:

MSysObjects
ID links to ObjectID in MSysQueries
Name is the object name
Type - 1,4 and 6 are tables, 5 is a query


MSysQueries
ObjectID links to ID in MSysObjects (multiple rows for each ObjectID)
Attribute
  1 - query type
  5 - Source data for the query
Name1 field (for Attribute 5 rows) is the source table or query
Expression field (for Attribute 5 rows) is the select statement for a Union query

这两个表可以帮助您找到您要查找的术语。