MattRichardsUK
Technical User
Hi I'm either trying to over think this as I think it should be quite simple.
I have 2 tables The first with an Action Table which is a list of records and date for each eg.(RecordNumber, PDate). The second table is a history table with the list of records and 6 date columns eg.(RecordNumber, PDate1, PDate2, PDate3 ..etc) .
My problem is im trying to Update the date in the history table. the Logic should be as follows. For matching "Recordnumbers" update the PDate1 field with the Pdate from the Action table. If PDate1 is already populated update PDate2 instead, if PDate2 is populated update PDate3 and so on until PDate6.
I know this is possible but think I need a fresh pair of eyes to look at it.
Thanks for your help
I have 2 tables The first with an Action Table which is a list of records and date for each eg.(RecordNumber, PDate). The second table is a history table with the list of records and 6 date columns eg.(RecordNumber, PDate1, PDate2, PDate3 ..etc) .
My problem is im trying to Update the date in the history table. the Logic should be as follows. For matching "Recordnumbers" update the PDate1 field with the Pdate from the Action table. If PDate1 is already populated update PDate2 instead, if PDate2 is populated update PDate3 and so on until PDate6.
I know this is possible but think I need a fresh pair of eyes to look at it.
Thanks for your help