In my form i have a unbound textbox which will show the latest contract number.
same form i got a subform with all contract details for the customer (like below)
date contract_No expiry
-----------------------------------------
01/02/2004 ABC1234 21/03/2004
12/03/2005 DEF5678 23/10/2005
23/06/2006 GHI9012 31/12/2006
I want the textbox in mainform to show the max date's contract_No from the subform. (mainform textfield should show "GHI9012")
can someone help with the code.
Ragu![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)
same form i got a subform with all contract details for the customer (like below)
date contract_No expiry
-----------------------------------------
01/02/2004 ABC1234 21/03/2004
12/03/2005 DEF5678 23/10/2005
23/06/2006 GHI9012 31/12/2006
I want the textbox in mainform to show the max date's contract_No from the subform. (mainform textfield should show "GHI9012")
can someone help with the code.
Ragu
![[pc] [pc] [pc]](/data/assets/smilies/pc.gif)