If your sboard value is a text field then you need to surround it with single quotes.
If Me.password.value = DLookup("[sbpassword]", "switchboardpasswords", "[sbid]=" & "'" & Me.sboard.value & "'") Then
Also, you can check for nulls and empty strings with Nz...
If Nz(Me.password) = "" Then