if fOSUserName is a string, you'll also need the single quotes.
also, your function doesn't return anything, lookuplevel2 must be defined as Public Function lookuplevel2() as String in order to return a string value
(if you change it to Integer, you can clean up the entire second function to...