sorry i forgot to mention that i need two dates becasuse my application handles statements for different periods represented by the date from and dateto so i do need them both.
i dont want to know about formatting thats fine. all i want to know about is how to track down a statement with the latest set of dates so i know from where i need to insert the next latest statement.
for example lets say we have the statements for the periods as below:
january
february
march
PLEASE NOTE IT DOESNT SHOW AS ABOVE IT GOES AS SHOWN ON MY FIRST THREAD WHERE THERE ARE TWO COLUMNS I NEED TO USE THOSE TO WORK OUT WHICH STATEMENT IS THE LATEST ENTRY. THEN ONCE I HAVE DONE THAT I NEED TO DO AN AUTOMATIC INSERT QUERY TO INSERT THE STATEMENT FOR THE NEXT MONTH MAKING SURE I HAVE GOT THE CORRECT LAST DATE FOR THAT MONTH!!
the next due date would be april so it would tell me that march is the latest month so accordingly my application needs to know to insert the dateFrom and dateTo for april.
now does this make sense? hope it does.
thanks