D
dcornett63
I would like to create a unique primary key by combining two fields within
the same table, the CU # (5-digit numeric) with the Task # (single digit
numeric), preferrable separated by a hyphen. The CU # is what will link to
other tables. The Task is limited to this table only. However, I want to
allow the user to select a certain Task # only once for any given CU #. For
Example, CU # 55555 may have a Task 1, a Task 2, a Task 3, etc. However, that
CU cannot have two Task 1s. In this case, the unique primary keys would be
"55555-1" for Task 1, "55555-2" for task 2 and so on.
Can this be done automatically?
the same table, the CU # (5-digit numeric) with the Task # (single digit
numeric), preferrable separated by a hyphen. The CU # is what will link to
other tables. The Task is limited to this table only. However, I want to
allow the user to select a certain Task # only once for any given CU #. For
Example, CU # 55555 may have a Task 1, a Task 2, a Task 3, etc. However, that
CU cannot have two Task 1s. In this case, the unique primary keys would be
"55555-1" for Task 1, "55555-2" for task 2 and so on.
Can this be done automatically?