>The messagebox doesn't fire. I put a sql statement and set the grid record source and alias in the gotfocus method of the form. Would that cause the problem?
Yes, it would. You may want to change your approach and use "safe select" method documented in Andy Kramek's weblog on www.foxite.com