Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

There is no row at position 1 error

Status
Not open for further replies.

RSX02

Programmer
May 15, 2003
467
CA
Hi
I have two lines:
DRPUBLICVIEW.Item("OccupiedAF") = Me.OccupiedAf.Text
DRPUBLICVIEW.Item("unOccupiedAF") = Me.UnoccupiedAF.Text
which both fields in my DrPublicView are Decimal.
In the both textbox I have the value 8.
on the second line it prompt me this error message: "There is no row at position 1".
I tried to inverse the line :
DRPUBLICVIEW.Item("unOccupiedAF") = Me.UnoccupiedAF.Text
DRPUBLICVIEW.Item("OccupiedAF") = Me.OccupiedAf.Text
Then error occured at the second line again. Same value in the textboxes.
Does somebody have an idea why it does this?
Thanks in advance
 
Ooopss Sorry about that

Dim DRPUBLICVIEW As DataRowView
m_DataLayer.DvPool = m_DataLayer.DsPool.Tables("Pool_type").DefaultView
m_DataLayer.DvPool.RowFilter = mForm.sfilter
dr = m_DataLayer.DvPool.Item(NoSeq)
Me.DRPUBLICVIEW = dr


DRPUBLICVIEW.Item("OccupiedAF") and DRPUBLICVIEW.Item("unOccupiedAF") are decimal with 1 number after the "."

Anyway, I don't know why, but I don't still have the problem. Unfortunatly I don't know what I change to make it works okay. So consider this thread like resolved...well...for now...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top