LOTUS CONNECTORS
Uselsx "*LSXODBC"
Dim con As ODBCConnection Dim qry As ODBCQuery Dim result As ODBCResultSet Sub Postopen(Source As Notesuidocument) Set con = New ODBCConnection Set qry = New ODBCQuery Set result = New ODBCResultSet Set qry.Connection = con Set result.Query = qry con.ConnectTo("ATDB") qry.SQL = "SELECT * FROM STUDENTS ORDER BY LASTNAME" result.Execute ... End Sub Sub Entering(Source As Field) Dim workspace As New NotesUIWorkspace Dim uidoc As NotesUIDocument Set uidoc = workspace.CurrentDocument If result.IsValueAltered(uidoc.CurrentField) Then Messagebox "This field was changed by SetValue",, _ "Field is altered" End If End Sub
See Also