Without more context it is not possible to be certain what you are trying to say. If either phrasing is correct then I would guess the second one is what you mean. If you check the definitions of "affect" and "effect" in any dictionary you should be able to verify this.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.