Update query in Microsoft Access 2007 -


I need to update many fields in the table. If I already have data in a field, then I will see the data in the next field I want to insert Example: Date 1 Date 2 Date 3 If date 1 has a date, then fill Date 2, if Date 1 and Date 2 have a date then populate Date 3 and in the same way. .

  update table set date2 = IIF (not IsNull (Date1), SomeDateValue, Date2 ), Date3 = IIF (not IsNull (date1) and not IsNull (date 2), some date-wise, date 3)   

Other criteria is true if date 2 or date 3 should be determined The question about is unclear. In this case, I thought that some value ( SomeDateValue ) is not mentioned.

Comments