J
Jack Sheet
Hi all, Access 97
Tables "T_Clients" and "T_Tasks" share a common field ClientRef with a 1
(T_Clients) to many (T_Tasks) relationship.
T_Clients has a field MyDate
T_Tasks has a field YourDate
I want to fill the MyDate field with the maximum value of YourDate where
records match ClientRef.
For instance, in T_Tasks you might find
Record ClientRef YourDate
1 AA100 01/01/2001
2 BB200 02/02/2002
3 AA100 03/03/2003
4 BB200 04/04/2004
Now, if those were the only records in T_Tasks, then on running the update
query the result in T_Clients should be
Record ClientRef MyDate
1 AA100 03/03/2003
2 BB200 04/04/2004
You may assume that there are no null ie blank entries.
I don't mind using intermediate queries if necessary.
Any help with the syntax of the query would be appreciated.
Thanks
Tables "T_Clients" and "T_Tasks" share a common field ClientRef with a 1
(T_Clients) to many (T_Tasks) relationship.
T_Clients has a field MyDate
T_Tasks has a field YourDate
I want to fill the MyDate field with the maximum value of YourDate where
records match ClientRef.
For instance, in T_Tasks you might find
Record ClientRef YourDate
1 AA100 01/01/2001
2 BB200 02/02/2002
3 AA100 03/03/2003
4 BB200 04/04/2004
Now, if those were the only records in T_Tasks, then on running the update
query the result in T_Clients should be
Record ClientRef MyDate
1 AA100 03/03/2003
2 BB200 04/04/2004
You may assume that there are no null ie blank entries.
I don't mind using intermediate queries if necessary.
Any help with the syntax of the query would be appreciated.
Thanks