so where are the attachments?
are you going to bind the rows in a datagrid or in a textbox?
So the picture i get from the information that you have provided is you have to get the regno when the Smartid is 0 or null
dim ldst as new dataset
declare a datset
the values that are returned should be stored in the dataset.. whether its gettin returned thru a textbox or a grid.
then try out
if ldst.Tables(0).Rows(0)(0) = 0 Then
'Checking whether the field SmartId is empty
ldst.Tables(1).Rows(0).Add.. and it goes something like that.. post in your code and will try to solve it out.
check this LINK
it has some basics of ADO.NET
arjunsasidharan
Practically a Posting Shark
826 posts since Aug 2006
Reputation Points: 347
Solved Threads: 13