Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing field value into indicator columns with 0s and 1s 1

Status
Not open for further replies.

VBAguy22

IS-IT--Management
Aug 5, 2003
180
CA
Hi,
How would I change table field values into indicator columns?
Say I have a table containing people and their pets:
(If a person has more than one pet, his name will appear twice with a coresponding pet name)

NAME PET

Anna Cat
Dan Cat
Dan Fish
Mike Dog
Mike Cat
Mike Fish


I want it to become:

Name Cat Fish Dog
Anna 1 0 0
Dan 1 1 0
Mike 1 1 1


Thnx!



 
Have you tried to follow the CrossTab query wizard ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top