>Thanks Al, it seems that its a memory corruption problem associated with a Dinamycube activex control wich resides in the form. I had to work it out the other way around, declaring the variable with field names and generating the array from it. It worked this way :S
Thanks for letting us know. You could mark your last message as the answer to help other people find the solution in future.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up