Both are legitimate English words with different meanings: Affect is an Action (verb), while Effect is an End result (noun).
Use "Affect" when you want an Action (verb); use "Effect" when you want an End result (noun). In rare exceptions, affect is a psychological noun (emotional state), and effect is a formal verb meaning "to bring about" (effect change).
To act upon or produce a change or influence in someone or something.
A change that is a result or consequence of an action or other cause.
"Rising interest rates directly affect consumer spending habits."
Correct Standard Usage"The cold weather did not affect the athlete’s performance."
Correct Standard Usage"Affect" is predominantly a verb meaning to influence. "Effect" is predominantly a noun meaning the result or outcome.
"Accept" is a verb meaning to receive or agree to. "Except" is a preposition meaning excluding or apart from.
"Lose" (rhymes with booze) means to misplace or suffer defeat. "Loose" (rhymes with goose) means not tight or free.
"Access" is the correct spelling meaning the right or ability to enter or use. "Acess" is a common spelling mistake with no valid definition.