Saving the documet at 1st time, data is still keep on the uidoc instead of doc. Thus, need to check it is newdoc and call uidoc.save ……
Call uidoc.Refresh If doc.isnewnote Then Call uidoc.Save Else Call doc.save(True, True) End If Call uidoc.Close
Saving the documet at 1st time, data is still keep on the uidoc instead of doc. Thus, need to check it is newdoc and call uidoc.save ……
Call uidoc.Refresh If doc.isnewnote Then Call uidoc.Save Else Call doc.save(True, True) End If Call uidoc.Close