I've had success with Terro. However, in the basement, I had ants coming in a corner of the basement but stayed on the cinderblock wall. There was a small but somewhat sizable gap between the cinder block wall and the slab so ants rarely crossed over to the Terro I put on the slab. I ended up taking a Q-tip with Terro and dabbing the cinder block wall along the path the ants used. I'd basically try to dab a small bit of Terro ahead of each ant I found.
I did this several times a day when I could and it took a couple of weeks, but they dwindled down to zero for 2-3 days in a row. At that point I cleaned out the caulk in the corner and re-caulked and so far so good.