If you wish to change the Company or Contact associated with a particular document, then do the following:
Bring up the Document dialog box by double clicking on the relevant document from the history window in either Company or Contact View, or from within History View.
Select the Contact tab. The Contact page lets you choose the company or contact with which you wish the document to be associated.
Press OK to save your changes.