3 tables involved.
1. Jobs
2. Shipping address (Jobs can have 1 to 100's of shipping addresses)
3. Companies
They are related through a field named Company_key.
A new record is created in jobs.
The Company name is added which then looks up the Company_key.
Shipping addresses are in a portal. When the user designates the the type of shipment (in my case the choice is Production or Sample) it creates a new record triggering the auto entry through a calculation.
1st it looks up the "Ship_via" (FedEx First AM, FedEx P1, UPS Next Day, UPS ground etc...)
2nd it looks up the "Bill_to" (Sender, Receiver, or Third Party)
The last step is where the problem lies. The case function does not return account number for FedEx or UPS.