Thanks very much for that Jeff it worked a treat (object_id was 2505 for me).
I had just found the acs_permission function call in the Developers Guide and was wondering how to get the parameters when your message arrived. Nice timing.
As a newbie I find the hardest part is finding my way around the db and how the whole thing hangs together. The docs are good but I find they make some assumptions when it comes to the db (or I'm just being thick - or I'm reading the wrong docs?).
Onward and upwards.
Steve