Use a column from tables selected row as a data bounds

I want to use a tables selected row and certain column as my maximum bound on a numeric text field. I know how to get the value in Python scripting but not how to get it in expression or properties.

Take a look at the lookup function: