Originally Posted by
ama
I have a database table called "Client" with these relevant fields:
Client.ClientID
Client.Crime2
Client.Crime3
Client.Crime4
Client.Crime5
Client.Crime6
Client.AdditionalVictimizations
The Crime2-6 fields are Lookup ComboBox fields querying the "ListCrimes" table with these fields:
ListCrimes.Detail
ListCrimes.CrimeID
ListCrimes.Abbr [the field that displays in the Crime2-6 and AdditionalVictimization fields in the Client table]
The "AdditionalVictimizations" field is a "multivalue checkbox" field that also gets its data from ListCrimes.Detail using a Lookup ComboBox query. The AdditionalVictimizations field is currently without data. It was added to simplify new data entry where a staff person can enter multiple values from one field instead of five.
Going forward is easy, but I want to update or append the existing data in the Crime2-6 fields into the AdditionalVictimizations multivalue field, and then delete the Crime2-6 fields. Can anyone help me with the append or update query? I don't know SQL, but can copy and paste just fine if SQL is the only way to do it!
Thanks in advance....
I agree with June7. I also I NEVER use multi-value fields. They were added to help with Web App hosted in Sharepoint.
Also in your design you have repeating field:
Code:
Client.Crime2
Client.Crime3
Client.Crime4
Client.Crime5
Client.Crime6
These really should all be in a sub/child table with one record per crime.
The is also true for the Client.AdditionalVictimizations as June7 has previously pointed out.
Making the leap from a spreadsheet design (single table) to a relational database (multiple related tables) is a huge leap. In the long run it is really worth it. By harnessing the power of a relational design you will be able to add Client.Crime7, Client.Crime8, not by having to edit the table and add fields and update many queries, forms and reports, but simply add additional records. No need to make any design changes.