That is probably the reason. In your original post you wrote that it was an autonumber, which is a long integer, and the format I gave applies to these. But why on earth are you copying the autonumber to "txtTrans" instead of just using the autonumber itself?
Swemebegur