Quote-customisation

Hi,

I did a customization for quote entry for only Authorised user can view and edit the quote, and for the other user the quote screen will get clear.
An unhandled exception error has occured after the following customization in the quotation screen.Please refer the attached file for error message.

Private Sub edvOrderHed_EpiViewNotification(view As EpiDataView, args As EpiNotifyArgs) Handles edvOrderHed.EpiViewNotification
'// ** Argument Properties and Uses **
'// view.dataView(args.Row)("[FieldName]")
'// args.Row, args.Column, args.Sender, args.NotifyType
'// NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes

If (args.Row > -1) Then
if view.dataView(args.Row)("Character01") <> QuoteForm.Session.UserID and trim(view.dataView(args.Row)("Character01")) <> "" then
messagebox.show ("Access denide for the user " & QuoteForm.Session.UserID )
oTrans.ClearDataSets()
oTrans.NotifyAll()
�oTrans.Update()
End if
End If
End Sub


The error message is as follows
Unhandled exception occurred in your application. If you click continue the application will ignore this error and attempt to continue. I
Index-1is either negative or above rows count

Thanks in advance for the solutions.



____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

[Non-text portions of this message have been removed]