Thread moved from 'General Developer' to 'VB6 and Earlier' forum

What data type is dblAnswerReal2 ? (eg: Integer, Double, String, ...)

The value you are trying to put into it is a String, so the error is expected unless the data type is String.



I recommend you read (and bookmark/save) the article What does this error mean, and how do I fix it? from our Classic VB FAQs (in the FAQ forum), as it explains various common errors - including this one.