You DON'T need code to pull value from another table if your record source has the right SQL. Right now, you only have Scorecard in your SQL, so of course it doesn't pull values from the Company table. Use an SQL that links the two tables together.
Is
this the Allen Browne form you are trying to copy? Must be, because it also uses a single-table record source.
Forget the technothenet function you linked to. There is a Dlookup built-in function that does the same thing. Two rules of thumbs: use built-in functions over custom functions whenever possible, and use SQL over VBA code whenever possible.
Let me know if that's the Allen Browne form you are using. I may be able to modify it to show you how it should be done, and it will require NO CODE in pulling out the value from the table (except all the code Browne put in for other events in the form).