Thanks for all the help, I got it to work finally. It wasn't the CDate function that wanted strings, but the left,right and mid functions that wanted strings. so I encapsulated the number in CSTR before I encapsulated it in left/right/mid and it worked. Thanks again.
Jeff