Please provide scripts to achieve below functionality.Before making a change in business address,for an account, the application should verify whether the account was created by the the person who has logged into the application.If yes then allow editing else don't

Showing Answers 1 - 3 of 3 Answers

Rohit

  • Oct 29th, 2007
 

Function BusComp_PreSetFieldValue (FieldName As String,
         FieldValue As String) As Integer
   Dim iReturn as integer
   iReturn = ContinueOperation
   Select Case FieldName
      Case "Account Status"
         if Me.GetFieldValue("Created By") <> _
            TheApplication.LoginId then
            TheApplication.RaiseErrorText("*** You cannot change the Address _
               because you did not create the Account***")
            iReturn = CancelOperation
         end if
   End Select
   BusComp_PreSetFieldValue = iReturn
End Function

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions