You were using the word as a transitive verb. According to Merriam Webster, "effect" as a transitive verb has the following definitions:
- Main Entry:
- 2 effect
- Function:
- transitive verb
- Date:
- 1533
1 : to cause to come into being 2 a : to bring about often by surmounting obstacles :accomplish <effect a settlement of a dispute> b : to put into operation <the duty of the legislature to effect the will of the citizens>
Now, here is "affect" as a transitive verb:
- Main Entry:
- 3 affect
- Function:
- transitive verb
- Etymology:
- Middle English, from affectus, past participle of afficere
- Date:
- 15th century