To debug this, add a breakpoint on your for loop. At this point, check the values of your array, and its length. Not sure about a foreach loop in vb.net, but in c#, try
foreach(SqlParameter sqlParam in Arrayname)
cmd.Parameters.add(sqlparam);
You may find that you never go into this loop, because the length of your array is 0.
ryan |