Re: SqlDataTable.Rows.Find(Multiple Primary Keys)

J

John Bonds

Here's some code. I'm getting a "input string was not in a correct format"
error

Dim pFindTheseVals(1) As Object
pFindTheseVals(0) = AddressType
pFindTheseVals(1) = Customer.ID
Dim pDataRow As DataRow = SQLDataTable.Rows.Find(pFindTheseVals)

Thanks
 
J

John Bonds

Ok, still going here.

I think it has to do with the 'order' of the primary keys in the DataTable.
If you get this error, rearrange your Object Array to reflect the proper
ordering of the primary keys in the DataTable.

Is there a better way to do this someone?

Thanks,

John
 
R

Ron Allen

John,
No, you just have to add items tothe object array in the order that the
fields are laid out in the table.

Ron Allen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top