What causes poor acceleration in 99 Camry and flashing check engine light?

Have vehicle scanned to determine problem--most auto part stores can do this