Roger said:
yes, BirdCode is a text field
From that code, only Birds.BirdCode and Bird can cause the Type Mismatch problem right?
But I checked that both are string, I'm thinking there's a conflict with
another code for something else.
Do other events in other properties for control boxes affect each other?
Roger, you've posted so little of the code that it is difficult to guess
what the problem might be. The way your snippet is written, Bird is not a
variable but rather a string literal. It looks as though the code might be
in an event for a form that has a control called Bird?? and i is supposed
to contain whatever the ?? is. Again, without seeing more of the code, it
is tough to guess.
Some suggestions:
Comment out the line that fails and add this line immediately above it.
MsgBox "Bird" & i
Run the code, if all is correct, what appears in the message box should be
the name of a control on your form.
Second suggestion - take a close look at the earlier reply from the very
learned Mr. Van T. Dinh.
Finally, if this doesn't help, post more of the code.
Best of Luck,
Randy