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 ……
1 2 3 4 5 6 7 |
Call uidoc.Refresh If doc.isnewnote Then Call uidoc.Save Else Call doc.save(True, True) End If Call uidoc.Close |