bad idle = leak, bad connection, bad spark, bad tps, bad o2 sensor, bad gas, etc.
check it all.

low/high idle = idle adjuster screw.. you really shouldnt have to mess with the screw until you're done troubleshooting your current problem, as it has NOTHING to do with a BAD idle, but a high/low idle.