>Yes - everything is names right, otherwise, when grid1 initializes, or does what it ought in AfterRowColChange, it would give errors ALL the time. It is just when that method is called from the grid2 that error=12. I have had trouble referencing DynamicForeColor always, so perhaps that's the '12' it can't find...
>
>Pic of the screen attached. The way it needs to work is:
>grid1 displays the jobs.
>grid2 displays the parts required for that job.
>if the backorder date and arrival date of the parts are empty, the record in grid1 must be red
>if they are filled in in grid2 correctly, the row in grid1 much change color to green.
>Presently, if they get filled in correctly, and I use the keyboard to Ctrl+Tab, to go back to grid1, the color of the row changes correctly, but I want it to change as soon as the data in grid2 triggers the color change, but calling the AfterRowColChange from grid2 causes the variable not found error.
Can you Copy + Paste here the complete code of the Grid2 method in which you're trying to change colors in Grid1, that raises the error?
----------------------------------
António Tavares Lopes