Something seems not right besides the fact that it doesn't work so far. If you can arbitrarily enter data in 2 fields, swapping sides as you go, that seems highly unusual to me. Each field ought to be for specific attributes for the table (entity), like
CATS | DOGS
calico | spaniel
persian | poodle
That you could swap either of these is very unusual. Maybe all your values belong in one field if they could appear in either?
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.