Hi

I have a label which contains an ID now what I want to do is
update the current record if the label contains a value and if not
insert a row....

The code related to the condition is below
VB Code:
  1. If (lblScaleEventID > 0) Or (ObjRSprodidvalues.EOF) Then
  2.         ObjRSprodidvalues.MovePrevious
  3.         ObjRSprodidvalues.Update
  4.      ElseIf (ObjRSprodidvalues.BOF) Then
  5.             Load frmvoidopid
  6.             frmvoidopid.Show vbModal
  7.            Else
  8.             ObjRSprodidvalues.MoveLast
  9.       End If
  10.        lblScaleEventID = ObjRSprodidvalues.Fields(0).Value

I receive an error ' EOF or BOF is true' or record is deleted...

Thanks for your help