Your problem is here: "'" And "USER='" Try This: MsgBox "'" And "USER='" It gives me a type mismatch.
Forum Rules