>Julie,
>What are l_prcode, l_cocode etc ? Memvar or fieldname or both ?
>What is the selected table alias when you call this ?
>Buffering - row,table or none ?
>Where/When this is called - before/after tableupdate, tableupdate() call >syntax, moved off the row ? etc...
>Cetin
l_prcode is the process code (memvar and fieldname) and l_cocode is the company code (memvar and fieldname)
I should have included the entire code. Here is the missing code that should answer your other questions:
lnRelativeColumn = .RelativeColumn
Thisform.LockScreen = .T.
IF lnRelativeColumn = 1
.ActivateCell( .RelativeRow, 2 )
ELSE
.ActivateCell( .RelativeRow, 1 )
ENDIF
.ActivateCell( .RelativeRow, lnRelativeColumn )
Thisform.LockScreen = .F.
SELECT ( .RecordSource )