I'm a bit confused on the need for the second command and hope someone can help me out with a deeper explination.
switchport mode access vlan 3 - places the previously specified interface in to a specific vlan in access mode.
I'm not sure what the second command does, but according to a show run in does place the int in switchport mode access (mode).
Thanks,
Dan