Let $M$ be a module over a ring $A$ and let $f_{1},...,f_{n}$ be elements of $A$ generating the unit ideal. Show that $M=0$ iff $M_{f_{i}}=0$ for $i=1,...,n$.
I feel that this is closely related to saying that $X=Spec A$ is quasi-compact. That is, we can consider a basic open covering ${X_{f_i}}$ of $X$. Then, we show the $f_{i}$ with $i\in I$ generate the unit ideal $(1)$ by writing $1=\sum_{i\in J}a_{i}f_{i}$ with $a_{i}\in A$ where $J$ is some finite subset of $I$. Then we have a finite subcovering.
Any help would be appreciated! Thanks!