>case nKeyCode == -5 && f6 save >.mSaveChanges() >>The problem is this - if I make changes to text in a textbox and leave the cursor in that textbox then press F6 I loose my changes even though my save routine is getting called - I always seem to loose the changes made to the textbox last edited (the one that the cursor is in when I press F6) - but if I use my save button on the form the changes are saved ok - i have "set confirm on" so I think the problem is that the textbox is not losing focus and the valid not getting called etc. I am not sure how to get it working correctly. Any ideas appreciated!
case nKeyCode == -5 && f6 save .cmdSave.Setfocus() && force textbox to lose focus .mSaveChanges() && add code here to restore focus to original control.