Ref list dropdown display text value, but save as int

Hi there!

I am trying to create a dropdown on my form that comes from a related table. I want to display text for the user, but save value to by database as a number. 

 

Here is the table my form is created from:

***Important note: this table is update only. 

addienaon_0-1646920962587.png

('Rating' column is an integer in my database)

Here is the table it's referencing:

addienaon_1-1646920987468.png

These are the property conditions in the table:

addienaon_2-1646921029817.png

This is the current Ratings dropdown in my form, and I would like it to instead show the property conditions above.

addienaon_4-1646921101257.png

Initially I tried using [Rating].[Property Condition] in the formula, but that doesn't work. I now realize that won't give me a list like I want. 

Then I thought, create a virtual column: REF_ROWS("Rating", "Property Condition") and in the 'Ratings' column create an expression to get the selected Property Conditions associated id. This also didn't work... gave me an error saying my table does not allow adds.

 

Is what I'm trying to do possible? Or, is there any way I could hardcode these text values to get the associated id?

 

Thank you for any help!

Solved Solved
0 2 887
1 ACCEPTED SOLUTION

Mark "Property Condition" column as Label. 

Just this. 

View solution in original post

2 REPLIES 2

Mark "Property Condition" column as Label. 

Just this. 

Ha! I love a simple solution, thanks for all your help Joseph! 

Top Labels in this Space