>
It seems to me that you are at end-of-file. This might happen if the TextBox is in a related table, and there is no related record.>
>you mean the controlsource? textbox doesn't have one.
Yes, I was supposing it had a ControlSource to a related table.
> any more help?
>
>i thought this is maybe because grid1 has the focus. how do i remove focus from the grid?
Well, if you don't have a ControlSource, I really have no clue what is happening.
TextBoxes can also change their colors if the .ReadOnly or .Enabled properties change. You may want to check whether this is the case. Also, you may want to check the BackColor in the debugger, and see if it changes.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)