Roland,
It depends on what you're doing. If you're only ever working with a single row, then obviously it would always be 0. If not, then you need to use something like this:
iCurrRow = Me.BindingContext(MyTable).Position
Since I don't code in VB, I *think* the above syntax is correct, but not 100% certain.
~~Bonnie
>Hi Bonnie,
>
>Thanks!
>
>What would be the proper code to get the current row poistion safely?
>
>Dim iCurrRow
>iCurrRow =
>
>Thanks
>=============================================
>
>>Roland,
>>
>>That would be (assuming Row 0):
>>
>>Dim iFileNum as integer
>>iFileNum = Me.Listing01_Client_Ds11.Tables("Client").Rows(0)("FileNum")
>>
>>
>>~~Bonnie
>>
>>
>>>Hi,
>>>
>>>How do you retrieve a value from a column in a dataset?
>>>
>>>Tried the following and it does not pass the syntax checking.
>>>
>>>Dim iFileNum as interger
>>>iFileNum = Me.Listing01_Client_Ds11.Tables("Client", "FileNum")
>>>
>>>Thanks
>>>Roland