Thanks for the post, you solved my problem. We are supossed to program the less possible in the office (so other non-programmers could "understand" :O) so I needed to solve this with the Enterprise Guide's wizards...

And finally I got it working!

Great work. Thanks again.

Have a nice day.