Flies have tiny wings and as such can't handle high wind speeds. Fans are highly effective in deterring stable flies, with the added benefit of keeping yourself cool on the job.

More About Coping With Stable Flies