Thanks - yes I can do it with a function but it's not me that needs it this time. I need to give the SQL to another developer not using Access. I'm waiting to hear that language he is using but thought if I could give him something in pure SQL it would be eaier for him.
Anyway - will wait for him and then he must find a function in the platform he is using.
Thanks - will ask him about his backend as well. Not sure. They are a 3rd party who is supposed to work with us but keep thing close to their chest while still not delivering. Yes I know