@julie norris,
A buyer takes the property subject to any leases, so, under normal circumstances, a change in the ownership should have no affect on the tenants. But, as
MBC points out, there might be a clause in your lease which requires tenants to vacate the premises when there's a change in ownership. So check your lease and see what it says.