This is just a wild guess, but can't you adjust StartMarket and EndMarket by placing them into an if-statement? So something like:

Code
if(month() < 00 && day() < 00)
{StartMarket = 0000;
EndMarket = 0000;}
else
{StartMarket = 0000;
EndMarket = 0000;}

Last edited by Grant; 08/08/23 15:55.