We tried last year, not with Borax but yeast. They didn't even look at it.
Another option I think would be to get some ladybugs. Eliminate the aphids and maybe the ants will leave to.
I will need to look up if it works that way. The ants were there before the aphids... But then again... less aphids will probably mean less ants (an it will be more enjoyable to work in the greenhouse, lol)
I might just give it a try, thanks, @johndoer123