Thank you for getting back to me with suggestions. It was my stupid mistake. My arrays were correct except for the arrays in the structures which were too small. Fixed and working. Again, thank you... Ronnie