What is this film people swapped peoples lives around by implanting memories using injections into peoples heads ie 1 day a guy was loaded the next he was a murderer does anyone know it?

I believe that film is Dark City (1998). It stars Rufus Sewell, William Hurt, Keifer Sutherland, and Jennifer Connolly. I wouldn't be surprised if there are other movies that fits your description.