I have a samsung galaxy tab 2 7.0, and I forgot the password. I want to save my photos and videos but I am not sure whether a factory reset will do. Any suggestions?
You can try installing a custom recovery and make a backup of the entire system. The backup will be a file that's like a zip/rar/etc. Then you can get your files that way.
Take a look at http://wiki.cyanogenmod.org/w/Install_CM_for_p3110 If you have the WIFI version of the tablet.
Take a look at http://wiki.cyanogenmod.org/w/Install_CM_for_p3100 if you have the GSM/SIM Card version of the tablet.
As with anything, You do this at your own risk.