Preventing Duplicate Record

Hi. I have a Product_Master_File table with a column [Raw Code]. I need to enter an expression in the Valid_If constraint to prevent the user submitting a Raw Code that already exists. I need to use another column in the table as the key field so I canโ€™t set the [Raw Code] column as the key field.

Any help on this would be great.

Thank you.

Solved Solved
0 6 450
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

Try:

ISBLANK(
  FILTER(
    "Product_Master_File",
    AND(
      ([_THISROW].[Raw Code] = [Raw Code]),
      ([_THISROW].[RowKey] <> [RowKey])
    )
  )
)

Replacing RowKey with the name of the key column of the Product_Master_File table.

View solution in original post

6 REPLIES 6
Top Labels in this Space