If TextBox1 = "" then
TextBox1 = SelectedDateIn
Else TextBox2 = SelectedDateIn
If TextBox1 = "" then
TextBox1 = SelectedDateIn
Else TextBox2 = SelectedDateIn
I expect the student to do their homework and find all the errrors I leeve in.
Please take the time to read the Forum FAQ