Function isn't available in expressions

Error 2426

You cannot use this function in an expression in Visual Basic.