I have tried many thingsl!!! However, I have found the best thing they are attracted to is a SOUR BEER!!!!!! Leave some out in a shallow cup and see them swarm! You might want to put plastic wrap over the cup with poked holes to trap them. I have also heard spraying with hairspray if they are just swarming and won't go under the plastic wrap. Yes!...such a nuisance. Slowly they will disappear.
My husband mixed hot water vinegar honey sugar and dish soap. I don't remember the amounts but it worked. I know it was small amounts bc he put it in jar kids.
Candy....Vinegar with a little sugar and Dawn (or what you have) in a small bowel. Put on counter.