Hi guys I'm having trouble working this one out.
I want the cursor to default to the 1st empty cell in Column AP but ONLY if the date in Column A is less than today's date. If its not less than today's date than the cursor should move to the 1st empty cell in Column D.
So lets presume today's date is 27/11/17. In the table below the cursor should move to the 1st empty cell in column AP.
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Col A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]AP[/TD]
[TD="align: center"]AQ[/TD]
[/TR]
[TR]
[TD]26/11/17[/TD]
[TD]Anderlecht[/TD]
[TD]Kortrijik[/TD]
[TD]$1.17[/TD]
[TD]$6.00[/TD]
[TD]$10.00[/TD]
[TD]4[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]26/11/17[/TD]
[TD]Club Brugge[/TD]
[TD]Waregem[/TD]
[TD]$1.30[/TD]
[TD]$4.50[/TD]
[TD]$7.00[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/12/17[/TD]
[TD]Charleroi[/TD]
[TD]Oostende[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2/12/17[/TD]
[TD]Lokeron[/TD]
[TD]Anderlecht[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
In this second example the cursor would move to the 1st empty cell in Column D because the 1st empty cell in column AP is not less than today's date.
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Col A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]AP[/TD]
[TD="align: center"]AQ[/TD]
[/TR]
[TR]
[TD]26/11/17[/TD]
[TD]Anderlecht[/TD]
[TD]Kortrijik[/TD]
[TD]$1.17[/TD]
[TD]$6.00[/TD]
[TD]$10.00[/TD]
[TD]4[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]26/11/17[/TD]
[TD]Club Brugge[/TD]
[TD]Waregem[/TD]
[TD]$1.30[/TD]
[TD]$4.50[/TD]
[TD]$7.00[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1/12/17[/TD]
[TD]Charleroi[/TD]
[TD]Oostende[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2/12/17[/TD]
[TD]Lokeron[/TD]
[TD]Anderlecht[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want the cursor to default to the 1st empty cell in Column AP but ONLY if the date in Column A is less than today's date. If its not less than today's date than the cursor should move to the 1st empty cell in Column D.
So lets presume today's date is 27/11/17. In the table below the cursor should move to the 1st empty cell in column AP.
<tbody>[TR]
[TD="align: center"]Col A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]AP[/TD]
[TD="align: center"]AQ[/TD]
[/TR]
[TR]
[TD]26/11/17[/TD]
[TD]Anderlecht[/TD]
[TD]Kortrijik[/TD]
[TD]$1.17[/TD]
[TD]$6.00[/TD]
[TD]$10.00[/TD]
[TD]4[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]26/11/17[/TD]
[TD]Club Brugge[/TD]
[TD]Waregem[/TD]
[TD]$1.30[/TD]
[TD]$4.50[/TD]
[TD]$7.00[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1/12/17[/TD]
[TD]Charleroi[/TD]
[TD]Oostende[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2/12/17[/TD]
[TD]Lokeron[/TD]
[TD]Anderlecht[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
In this second example the cursor would move to the 1st empty cell in Column D because the 1st empty cell in column AP is not less than today's date.
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Col A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]AP[/TD]
[TD="align: center"]AQ[/TD]
[/TR]
[TR]
[TD]26/11/17[/TD]
[TD]Anderlecht[/TD]
[TD]Kortrijik[/TD]
[TD]$1.17[/TD]
[TD]$6.00[/TD]
[TD]$10.00[/TD]
[TD]4[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]26/11/17[/TD]
[TD]Club Brugge[/TD]
[TD]Waregem[/TD]
[TD]$1.30[/TD]
[TD]$4.50[/TD]
[TD]$7.00[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]1/12/17[/TD]
[TD]Charleroi[/TD]
[TD]Oostende[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2/12/17[/TD]
[TD]Lokeron[/TD]
[TD]Anderlecht[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]