99 Accord shuts off while driving

When this started happening to my 98 olds it turned out to be a bad ground from the battery to the fender. Clean and tighten connections at both ends of your battery cables and if the cables feel brittle rather than bend smoothly, replace them.