I have a form which is completed and contains address info, after the user completes the form, they complete the same form again with new info. One thing that does not always change is the address. I want the address to carry forward to the new form. I have this code but am not having any luck.
Dim uidoc As NotesUIDocument
Dim doc, newdoc As NotesDocument
Set db = sess.CurrentDatabase
Set doc= uidoc.Document
Set newdoc = db.CreateDocument
newdoc.Form = "ibpc_order_form2"
newdoc.new_contact = doc.new_contact
newdoc.new_ddress = doc.new_address
newdoc.new_city = doc.new_city
newdoc.new_state = doc.new_state
newdoc.new_zip = doc.new_zip
newdoc.new_phone = doc.new_phone
newdoc.new_ccc = doc.new_ccc
Call newdoc.save(True, False)
Call ws.ComposeDocument ( "", "", "ibpc_order_form2" )