Thanks Guys

That works with option strict off and the compiler does not complain about the statement now with option strick on. Unfortunately I have to get rid of umpteen other option strick relate errors before I can run the code.

I was getting close but trying to use ctype instead of directcast.

jmcilhinney - once again- thanks for your repeated help