I have struggled with grammar and spelling for a long time, even though I love to write. On line grammar is almost completely out the door for me at times in my comments, and that combo of affect and effect are a confusing one for me and always has been. I don't know what affect I have in my writing on people when trying to effect a certain outcome.? Did I use them right?
Anyhow, it's online conversational typing, and well people do not speak perfect grammar, so my comments while mostly, (or as close as I can get), seem grammatically correct, (I think), I am sure there is a ton of improvement needed on my part, so that's my long winded way of saying *Thanks I appreciate the effort and will try to catch them when I can. (the grammar post)
I agree that when we write online, we often throw grammar out the window, both for convenience and readabiity. Sometimes, being 100% grammatically correct leads to bizarre sentence construction. For example, according to the rules of grammar, we are told not to end a sentence with a prepositional phrase. I think it was Winston Churchill (?) who famously said "that is a rule up with which I shall not put" because, obviously, in many cases, it is much more awkward not to end with a preposition.
I am not an expert. Part of the reason I want to write about this is to remind myself of the rules!
To answer your question:
Your first use of "affect" was incorrect. It is a noun and in the sense of "cause and effect," so "effect" would be correct. Your second use of "effect" was correct. To effect change... you are using the other meaning of "effect" and therefore it is a verb. I see how this can be confusing.
Effect as a noun is an effect. So, for example, when I stick a fork in the power outlet, it has a bad effect on me. How does it affect you when you stick a fork in the power outlet? Does it effect a change in your mood when you stick a fork in the power outlet? If so, that is the effect it has on you. It might affect different people in different ways.
I guess the rule of thumb is that if you can put "to" in front of it, it is "affect" and if you put "an" in front, it is "effect" unless you are talking about effecting change (as you were). English is such a weird language. I have sometimes taught ESL, and sometimes my students have looked at me like I am insane. I didn't invent English! Haha.
(I feel like I have just confused matters further. I apologize if that is the case.)
Oh well, English both American and English English are totally screwed up when it comes to grammar. I am not sure I will ever totally always get the usage of effect and affect down, but then again, there are a lot of people like me. If it looks right it is right I guess.