Object Variable not Set upon sending mail only. Help!

I just recently migrated Lotus Notes from an old machine to a new machine, and am experiencing an annoying problem. Whenever I write a note and then click on Send, notes props an Object Variable not set message. This only happens when I click on Send, nowhere else. I am using an ancient template and really do not want to have to refresh my design in order to fix this.

I used the lotus debugger, but am by no means a lotus developer. Heres where I think it displays this message:

Start of Code Change for PR 312 (Send & Filing in to Followup)

If note is Nothing Then Exit Sub 'Fix for PR# 369

If note.HasItem(“FilingFlag”) Then

If note.FilingFlag(0) = “1” Then

 univID$ = note.UniversalID

 Dim col As Notes DocumentCollection

 Dim view as NotesView

 Set view = db.GetView("FollowUp")

 Call view.Refresh        <====

That’s where I think its throwing the message, as a Yellow arrow appears here. Perhaps I am wrong.

Help!

Subject: Object Variable not Set upon sending mail only. Help!!

Under the variables tab you’ll see a lot of items. Is View set to anything? If not, then when the code tries to refresh it it fails there.

I don’t see db specified here, I guess you didn’t include it. The database you are in, does it have a FollowUp view? If so, is the followUp view open when you click on the send button? If not, then that is why this code fails here.

Hope this helps.