Lotus Notes error – Cannot locate field

10 pts.
Tags:
Domino Designer
Lotus development
Lotus Notes
Lotus Notes email
Lotus Notes error messages
i've written a lotus notes program. it's a form which contains a button (for sending email) and a text field (it acts as a flag to control users from sending email more than once). it works in the "preview in notes" in the domino designer. however, when i copy the form (using Ctrl-A) and paste it in the a new memo in lotus notes, the error "Notes Error - Cannot locate field" is prompted. It seems the lotus notes cannot locate the field "EmailFlag" (please see below). the source codes are shown below: ======================================== Sub Click(Source As Button) Dim workspace As New NotesUIWorkspace Dim uidoc As NotesUIDocument Dim doc As NotesDocument Dim flag As Integer Set uidoc = workspace.CurrentDocument Set doc = uidoc.Document flag = uidoc.FieldGetText("EmailFlag") If flag = 1 Then Dim session As New NotesSession Dim db As NotesDatabase Set db = session.CurrentDatabase Set doc = New NotesDocument(db) doc.Form = "Memo" doc.SendTo = "xxx@xxx.xxx" doc.Subject = "This is the email subject" Set notesRichTextItem = doc.CreateRichTextItem("Body") notesRichTextItem.AppendText("This is the email body.") Call uidoc.FieldSetText("EmailFlag", "0") Call doc.Save(True, False) Call doc.Send( False ) End If End Sub ======================================== does anyone know how to solve the problem? thanks! Freeman
ASKED: January 9, 2009  7:19 AM
UPDATED: January 9, 2009  1:51 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following