Gasman
Enthusiastic Amateur
- Local time
- Today, 16:26
- Joined
- Sep 21, 2011
- Messages
- 16,653
Well times could cause an issue, but it did look like the dates were backwards from what was expected from what you had said.
Congrats on getting to the bottom of it.
The conts is handy rather than having to muck around with # all the time.
I just need to find it to see what it was called all the time (when I was coding) as my memory is so bad.
Congrats on getting to the bottom of it.

The conts is handy rather than having to muck around with # all the time.

I just need to find it to see what it was called all the time (when I was coding) as my memory is so bad.

Fixed the problem...
when I looked at what dates were not showing up all of January and half of February would not work and a few days from the previous year.
I looked at the underlying table and found that some of the dates had times attached to them so 02/01/2019 10:32:55. I removed all the times as they are not required, don't know where they come from (likely a Now() function rather than a TODAY() function)
Now the Public Const thing works a treat.
Moral of the story, if you code looks like its working most of the time, check the the table data![]()