Both agents are on the same server.
Each agent is in a different db on the same server
First agent calls the second one:
Dim LeaseDB As New NotesDatabase ("CMNotes1","Leasing\LeasingT.nsf")<<-- this does get set and isopen
Dim agent As NotesAgent
Dim status As Integer
Set agent = LeaseDB.GetAgent("Generate and Update Lease Info") <<--- this never gets set and the agent exists, ive also tried the alias
status = agent.RunOnServer
If status = 0 Then
Msgbox "Agent Ran Successfully"
Else
Msgbox "Agent Failed"
End If
Each agent is in a different db on the same server
First agent calls the second one:
Dim LeaseDB As New NotesDatabase ("CMNotes1","Leasing\LeasingT.nsf")<<-- this does get set and isopen
Dim agent As NotesAgent
Dim status As Integer
Set agent = LeaseDB.GetAgent("Generate and Update Lease Info") <<--- this never gets set and the agent exists, ive also tried the alias
status = agent.RunOnServer
If status = 0 Then
Msgbox "Agent Ran Successfully"
Else
Msgbox "Agent Failed"
End If