I have the following module that works OK in:
Windows XP Access 2000 and Access 2003
When I run on Windows 7 Access 2003 I’m getting the following error:
Microsoft Visual Basic
Run-time error ‘-2147319779 (8002801d)’:
Method ‘FullPath’ of object ‘Reference’ failed
with Print #1, Ref.Name; “;”; Ref.FullPath highlighted in yellow
Any help is welcomed
John
11397335
===========================
‘ To run type ?SaveReferences(“Clerk.ref”)
Function SaveReferences(Optional strFileName)
Dim Ref As Reference
Dim strTmp As String
If IsMissing(strFileName) Then
strTmp = CurrentDb.Name
strFileName = Mid(strTmp, 1, InStr(strTmp, Dir(strTmp)) – 1) & “REFERENCES_”
strTmp = Dir(CurrentDb.Name)
strFileName = strFileName & Mid(strTmp, 1, InStr(strTmp, “.”) – 1) & “.TXT”
End If
Open strFileName For Output As #1
For Each Ref In Application.References
If Not Ref.IsBroken Then
Print #1, Ref.Name; “;”; Ref.FullPath
End If
Next Ref
Close #1
End Function
====================