>Ah, that is the detail that I forget about. Really, I've never understood why you can't just put:
>
>rnEmployees = rnEmployees + table.NoOfEmpField directly as the expression.
That's because it's called an OnEntry or OnExit "Expression". You can't put "commands" in it .. only expressions. But luckily, _VFP.SetVar() is technically an "expression".
>If I'd seen you hanging around, I wouldn't have bothered giving him my almost good answer. :)
Hey ... the more answers the better. Sometimes a partial answer is enough for me because it sets my mind into a different mode of thinking and eventually I come up with the full answer. And then there's the days when nothing seems to make sense!! ;-)