Have you perhaps borrowed any code from Ian Mayor aka ProgramError on this forum? I say this because he posted the following here quite recently:
Thought this may be useful to someone. I usually work on a copy of the backend tables so I dont do any damage to the original data, but occasionally want to make sure the frontend is working correctly with the original backend data. So things can get confusing. here's a way of displaying the linked table path of the first table.
create a textbox called DBPathTXT on a form.
The code below looks for the first occurance of a table in the system(hidden) tables and returns the back end path it is pointing to in the textbox.
Useful for checking where the linked table manager has linked to the backend tables.
Me.DBPathTXT = DLookup("Database", "MSysObjects", "[flags] = 2097152")
Ian Mayor (UK)
You'll notice that the statement is identical, including the user defined variable DBPathTXT.
The Missinglinq
There's ALWAYS more than one way to skin a cat!