H
hoachen
Using Access 2003,XP OS
I am trying to run a query from a table (See the data below). I want to run
a query that check the phone#, if the phone number is the same then i want to
eliminate the phoneType where is equal to "Cellphone".
I used the query here but not working due to multiple fields have the same
input.
SELECT distinct Sheet1.Phone#, Sheet1.Fname, Sheet1.LName, Sheet1.Dept#,
Sheet1.Address, Sheet1.PhoneType, Sheet1.ClassNumber
FROM Sheet1;
WHERE Sheet1.PhoneType = "Cellphone"
I searched the google and found some said that access does not support
distinct clause!
Please help!
Fname Lname Dept# Phone# Address PhoneType ClassNumber
Susan Linsey 890123 123-456-789 456 ABC Street Home MTK123
Susan Linsey 567880 123-456-789 456 ABC Street Cellphone MTK123
Dana Choi 232111 447-123-456 123 DEF Drive Home STkk1
Megan Winer 454646 447-123-457 678 AAA Ct Home JKTF199
Christina Pope 453455 447-123-458 890 North Road Home LLL77
Mike Scott 565656 447-123-459 888 S Court Home MNS68
David Nicole 654656 677-333-456 1111 Harlen St Cellphone PO90
Bob Smith 511345 888-900-123 1202 Can Do Home HBC56
Bob Smith 907896 888-900-123 1202 Can Do Cellphone HBC56
I am trying to run a query from a table (See the data below). I want to run
a query that check the phone#, if the phone number is the same then i want to
eliminate the phoneType where is equal to "Cellphone".
I used the query here but not working due to multiple fields have the same
input.
SELECT distinct Sheet1.Phone#, Sheet1.Fname, Sheet1.LName, Sheet1.Dept#,
Sheet1.Address, Sheet1.PhoneType, Sheet1.ClassNumber
FROM Sheet1;
WHERE Sheet1.PhoneType = "Cellphone"
I searched the google and found some said that access does not support
distinct clause!
Please help!
Fname Lname Dept# Phone# Address PhoneType ClassNumber
Susan Linsey 890123 123-456-789 456 ABC Street Home MTK123
Susan Linsey 567880 123-456-789 456 ABC Street Cellphone MTK123
Dana Choi 232111 447-123-456 123 DEF Drive Home STkk1
Megan Winer 454646 447-123-457 678 AAA Ct Home JKTF199
Christina Pope 453455 447-123-458 890 North Road Home LLL77
Mike Scott 565656 447-123-459 888 S Court Home MNS68
David Nicole 654656 677-333-456 1111 Harlen St Cellphone PO90
Bob Smith 511345 888-900-123 1202 Can Do Home HBC56
Bob Smith 907896 888-900-123 1202 Can Do Cellphone HBC56