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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Execute on Record Change

Status
Not open for further replies.

rsamson

Programmer
Feb 22, 2002
4
US
Is there any way to trigger a lotusscript on record change. I want a script to run by simply browsing to a record.
 
Use the RecordChange event in the DocumentWindow object. Note there is only one per apr so test for the view name else the proc will execute on every view.

Sub Recordchange(Source As Docwindow)

On Error Goto ErrTrap

With CurrentView
If .Name = "xyz" Then
'Your code here
End If
End With

Goto ExitSub

ErrTrap:
Msgbox "Error " & Format$(Err, "#0") & " - message: " & Error$, 16, "System Error"
Resume ExitSub

ExitSub:

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top