'-- Cycle through all of the array rows and add a record for each row For Each i As Integer in e Me.NewRow() Me.MyField = i NextEnd Sub
TIA.
Forgive me, I'm a bit slow at times
By using the command builder I am now able to write the data and the PK to the table. Learned a great deal doing that but now I can not seem to delete the old data just before I write the new data. Should I be able to use the command builder to do that?
TIA
So, within the sproc, you just join in the results of the UDF to a select statement to limit the results down to the contents of the list:
SELECT CST.*FROM Customers AS CSTINNER JOIN dbo.Udf_BytesToPkList(@CustomerPKs) AS CPK ON CST.cst_pk = CPK.pk
Does that sound like something that would handle your need here? The custom UDF is really the only part of the process that has any complexity at all, and I can go into greater detail there if it sounds like something that can help you out .
Buffie