You need to get really really close to whatever you want to take a picture of. Otherwise it is going to end in a distant rejection. I've got two Nikkor 10.5 shots in the
DB.
And another thing to talk about. The Nikkor 10.5 is
AF but NOT
AF-S which would be required to use the Autofocus on your D40.
Take care,
Lars