Hi Ross,
Dean4144 (TechnicalUser)
You wrote:
Peter, could you give me a clue about how you do this. Is your method coded or do you have separate queries that you run?
>>
>>
No, it is plain and simple mouse work in query windows...I guess you could call it a quick and dirty method

.
I have two tables:
--------------------------
MASTER-table (with 4 relevant fields)
NAME // SIRE // DAM // ImpactValue
(at the start -100- is entered in the target ImpactValue field)
--------------------------
SUBFILE-table (with 6 relevant fields)
NAME // SIRE // DAM // NameValue // SireValue // DamValue
--------------------------
and 4 QUERIES:
--------------------------
the first query links the two tables via the NAME & SIRE fields
and enters the content of ImpactValue in the (empty) SireValue fields
--------------------------
the second query links the two tables via the NAME & DAM fields
and enters the content of ImpactValue in the (empty) DamValue fields
--------------------------
the third query addresses the SUBFILE-table and adds up the values
in the SireValue & DamValue fields, divides the outcome by factor 2,
and enters that result in the (empty) NameValue fields
--------------------------
the fourth query links the two tables via the NAME & NAME fields
and enters the content of the NameValue fields in the (empty)
ImpactValue fields
--------------------------
And then the cycle is repeated.
**
You wrote:
I ask this question, because usually, I would expect to be sitting looking at a form of some sort when the basic question gets asked. Regardless of the number of tables your code might visit, you should eventually get to the point where you can say "it is done!" All this from a single click on a button and perhaps the setting of some parameters as the code sets off.
>>
>>
Because I do this manually I see that the job is done when the 'answer' windows don't show changes anymore. I assume that if it is possible to automate the process, that it is necessary to limit the number of cycles in order to avoid a loop situation. The data (dog pedigrees) I work with are quite detailed so I can see how many generations away a dog is from the present, the maximum number of generations at present is 40.
Kind regards,
Peter van Arkel