6 Type mismatch

This error indicates that a number was encountered when a string was expected and vice-versa. Don't forget that this can occur if the actual parameters and the formal parameters for a function or procedure do not correspond. (See article on Procedures and Functions for details of parameter passing to functions and procedures).