Greetings to all,
i have a database with a few tables, but i need a special one that stores initial date and final date for a particular ID, but like this...
The table has the folowing fields; ID,STAGE,INITIALDATE,FINALDATE
New record:
ID1 - STAGE - INITIAL DATE - FINALDATE( leave blank )
New record:
ID2 - STAGE - INITIAL DATE - FINALDATE( leave blank )
When ID1 is repeated it must detect the blank field ( FINALDATE) , fill with the now date ( to finalize the record ) and also add a new record ( ID1 - STAGE - INITIALDATE - FINALDATE ( leave blank again ).
It also can have other records of other IDs in between.
I think i need a VBA code to detect the last record for ID#, detect FINALDATE field, write the date on it, save, and add a new record again.
Can this be done?
Many thanks in advance

i have a database with a few tables, but i need a special one that stores initial date and final date for a particular ID, but like this...

The table has the folowing fields; ID,STAGE,INITIALDATE,FINALDATE
New record:
ID1 - STAGE - INITIAL DATE - FINALDATE( leave blank )
New record:
ID2 - STAGE - INITIAL DATE - FINALDATE( leave blank )
When ID1 is repeated it must detect the blank field ( FINALDATE) , fill with the now date ( to finalize the record ) and also add a new record ( ID1 - STAGE - INITIALDATE - FINALDATE ( leave blank again ).
It also can have other records of other IDs in between.
I think i need a VBA code to detect the last record for ID#, detect FINALDATE field, write the date on it, save, and add a new record again.
Can this be done?

Many thanks in advance