I need little help with a database select using for each function please

That’s great Mks, glad you got it working. If you could, in the response that included the solution you should have a green checkmark in the bottom list set of options that will mark it as Solved. Here is more details in How to ask a good question?
Thanks, GenXDo