I'm going to post these two functions, and then at the bottom post the sql statement where I call them... 'cause this is kinda hard to explain. Probably easier to show. So far I've come across two different tables that hold these lookups, one for text fields and one for note fields.
The issue is that the Field_ID is different for different companies, and I need a report script to work against all companies. So, for each company, I need to look up the field ID instead of my usual method of hard coding it. j