Martin,
I haven't used the "Relink tables from different datasources" code
myself yet, but as I understand it fRefreshLinks does this:
- for each linked table in the database, test the link using
Set rstTry = dbs.OpenRecordset(rst![Name].Value)
- if the link works, move to the next linked table
- if not, ask the user to select the correct file
- if after that all is well, return True, otherwise false.
If you want to change the "target" of a linked table where the link does
work, you'll need to modify the code. Alternatively, if you search
http://groups.google.com for
access dao "relink tables" group:microsoft.public.access.*
you should find something useful.
>John
>I added the code you suggested. I tried stepping thru the code and it
[quoted text clipped - 40 lines]
>>
>> Please respond in the newgroup and not by email.
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.