If I understand your question, your husband is the one with the work visa and you will have a dependent visa, based on your husband's work visa. Is that correct?
You should check with the Swedish consulate website, but if you are applying for a dependent visa, the visa will be valid for the same period of time as your husband's visa.
I'm not sure how it works for Sweden, but for many countries, if you are granted a dependent visa, you will not be eligible for a work permit. According to what I see on the Swedish consulate website, to get a visa with a work permit, you must have already secured a job before you apply for the visa, with your employer acting as your visa "sponsor." If you are applying for a dependent visa, you must submit your visa application at the same time that your husband submits his application (along with his work contract).