Hi all,
I have done some "creative thinking" and the solution is going to be as follows:
Whenever a new Administration is added to the Administration file, I create a new folder (named after the administrationcode) where a copy of the Department file is created to contain only Department records "belonging" to that Administration.
That will automatically create a unique Key for the code field
Whenever records in the MAIN Department file are created, edited, or deleted, the same operation will be executed to their carbon copy.
The lookup operation will use the copied file with the subset, where the code field will be the unique unchanging key. Redirecting the path for the Department file can be done the way Bruce described in one of the login topics. The Administration code is strored in a session value.
This is all theory of course. I have to find out if and how it will work out but I am optimistic by nature
.
Cheers,
Rene
BTW if anyone has a better plan, please let me know.