I did it like this. (Come to think of it, your way makes more sense. :)
&& form keypress event
case thisform.standardpageframe1.page1.smartgrid1.activecolumn = 7 and nKeyCode = 13
nodefault
skip in classattendance
if eof('classattendance') .or. classattendance.apprenticesid <> apprentices.apprenticesid
&& add button - adds a new record
thisform.standardcommand5.click
endif
keyboard '{TAB}'
keyboard '{DNARROW}'
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only