the CRM order you can either maintain a Contact or Account into the Customer field. Depending on the type the order is linked either to the contact or account.
The database 'dbo.SalesOrderBase' has two fields for the link:
I would like to use java script to update the 'AccountID' if a Contact is entered into the order Customer field.
Does anybody have an example code on how to update a database field which is not on the form?