ok think I have it, it was a logic problem really, I am using :
<=Nz(([TempVars]![tvcldate]),#31/12/2100#)
using #31/12/2100# instead of "*", it would seems it was testing <= against "*", which errors, whereas the original function was using "*" to just return all records
Thanks for your...