Affect is used when something makes an impression on one's feelings or thoughts. Effect is the result of an action or something that has been accomplished.