Hi, I have a piece of code that is supposed to check a table for the last date in it and if it is not yesterdays (or fridays date if opening on a monday) then it is supposed to import a text file. The problem is it is not recognising the last date and so just keeps importing each time.
Here is...