Ok, with the code your using the link criteria will simple be set to the last if criteria which was met. So you have test all three items in the if statement and have a resulting LINKCRITERIA for each. e.g.
If [txtBoxNo] <> "0" AND [txtName] = "0" AND [txtDateIn] = "0" then
LINKCRITERIA =...