I'm not an mVP but this is what I wrote for myself not very good documentation
on how to do this. I created a table called "System References"
in my database with the fields:
Ref_ID Autonumber (primary Key)
Ref_Name Text(50)
Ref_Path text(240)
Ref_Kind Long
Ref_IsBroken Text(50)
Here is the code to fill the empty table:
Public Sub ListSystemReferences()
Dim ref As Reference
Dim lngCount As Long
Dim rsRefs As ADODB.Recordset
Set rsRefs = New ADODB.Recordset
With rsRefs
.ActiveConnection = CurrentProject.AccessConnection
.LockType = adLockOptimistic
.CursorType = adOpenKeyset
.SOURCE = "SELECT * From [System References];"
.Open Options:=adCmdText
For Each ref In Application.References
lngCount = lngCount + 1
.AddNew
!ref_Name = ref.Name
!ref_Path = ref.FullPath
!ref_Kind = ref.Kind
!ref_IsBroken = ref.IsBroken
.Update
Next ref
.Close
End With
Set rsRefs = Nothing
End Sub
Good coding...
kjh
stevemets said:
Is there a way to programmically list references for a 97-2002 Access
database? Goal is not to fix or alter them, merely list them. Thanks