pbaldy said:Well, there's no data in the sample you posted, so for me the query runs without prompting, but returns no records (as you'd expect).
View attachment propprjt.zip
Here's one with data. I can't believe I got a complicated macro to work but this I have trouble with!
D