Hi. Iโve a form in which on of the field takes Ref from another table as a list and displays them as a drop down for the user to select. Iโve added the following formula in โValid_ifโ so that the drop down contains only โAvailableโ devices.
Select(Devices[IMEI],[Status]=โAvailableโ)
This is working fine for a new entry. However, when trying to edit an existing record, this field prompts as invalid as the status is changed to โSoldโ during the initial entry. Can you please help me with this?
You can set a condition in your Valid_if expression to verify if itโs a new entry or youโre editing an existing record and list related IMEI values in the dropdown.
@Levent_KULACOGLU Thanks Levent. So basically put in a IF expression and see if the IMEi is already in the table or not and depending upon that put in valid expression?
You can use IF or IFS expression. The below expression will verify if the record is a new one or youโre editing an existing one.
=IN([KeyColumnName],TableName[KeyColumnName])
If this expression returns TRUE, this means that youโre editing an existing record, if it returns FALSE, than itโs a new record.
User | Count |
---|---|
18 | |
9 | |
8 | |
5 | |
5 |