Oops, too fast concluded the references need to be changed as you found that yourself..
The only opytion I see is to refresh the references from code when you detect the program is running in an XP environment.
Check http://www.mvps.org/access
for therefresh o fthe reference you could use this code:
Function ReferenceFromFile(strFileN
Dim ref As Reference
On Error GoTo Error_ReferenceFromFile
Set ref = References.AddFromFile(str
ReferenceFromFile = True
Exit_ReferenceFromFile:
Exit Function
Error_ReferenceFromFile:
MsgBox Err & ": " & Err.Description
ReferenceFromFile = False
Resume Exit_ReferenceFromFile
End Function
Nic;o)
Main Topics
Browse All Topics





by: nico5038Posted on 2003-10-01 at 14:00:50ID: 9469783
Check the refenrences:
Open some VBA code and select Tools/References.
Each libraryname starting with "MISSING" must be unchecked and (e.g. microsoft DAO version x.xx) replaced when necessary.
As access doesn't cleanup added libraries, often unnecessary refenreces are present.
Just delete as many as possible without getting an error executing "Debug/compile all modules"
Nic;o)