In the following example an insert that inserts instructions for a single lawyer if one attorney is selected and instructions for multiple lawyers if more than one attorney is selected. This example also prmpts the user to select the number of attorneys from a choices control contained on the form if not selected.
Public Sub Form_OnAssemble ()
if fld.No_of_Attorneys.Answered = false then
MessageBox.Show("Please select number of attorneys")
elseif fld.No_of_Attorneys.value >1 then
Insert("INSERT_Attorney_Details", "C:\Program Files\Zumesoft\WordFusion\Samples\Inserts\Gen POA - Multi Att.doc")
else
Insert("INSERT_Attorney_Details", "C:\Program Files\Zumesoft\WordFusion\Samples\Inserts\Gen POA - 1 Att.doc")
end if
End Sub |