as long as it has a lid i think it will be ok, hamsters are 'escape artists' and escape out of allot of cages, many people ask, how can i find my hamster but this is usually because the cage isn't secure or the hamster can just escape.
tanks have good and bad points, they are quite high so its not likely to get out, they are easy to clean, they are generally un-hygenic than cages as it gets warmer in them alowing microbes to spread, they don't provivde much ventilation which is bad for them.
i think you should get a high tank or something i dont know, tanks are generally good with holding small animals because they are normally quite high, i suggest a higher one or ask a pet shop for a suggestion.
i hope i helped