I have two tables set up. One is for radios and the other is for radio assignment. On the radio assignment there is a returned button. How can I use the check duplicate button to make it so the same radio cannot be assigned when it is already assigned, but it can be reassigned when it is marked returned. I wold like to keep the records instead of deleting them.
Assignment
-
- User
- Posts: 38
A radio will be signed into the system with no duplicates. It will then be signed out and cannot be reassigned until it is marked as "Yes" for returned. Then the radio will be able to be reassigned without deleting the record.
== Table structure for table radios
|------
|Column|Type|Null|Default
|------
|//ID//|int(11)|No|
|Type|varchar(20)|No|
|Serial Number|varchar(50)|No|
|Condition|varchar(50)|No|
|Owner|varchar(50)|No|
|Returned|varchar(20)|No|
|Notes|text|Yes|NULL
|Signature|varchar(25)|No|
== Table structure for table resource_assignment
|------
|Column|Type|Null|Default
|------
|//ID//|int(11)|No|
|Serial|varchar(50)|No|
|Member|varchar(50)|No|
|Required Training|varchar(20)|No|
|Returned|varchar(20)|No|
|Notes|text|Yes|NULL
|Signature|varchar(25)|No|