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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record shows twice in a query

Status
Not open for further replies.

fmaca

Technical User
Apr 24, 2002
16
CA
Good morning.

I have a table with four columns, ID, PartNunmber, Quantity and Location.

When I run a query on "Location", one of the records shows up twice. If I total the PartNumber column, that part number shows 2 instead of 1.

Where should I look?

Thanks in advance.

Ethan
 
Try a group query and make sure the part number is the 1st item in the group like below:

SELECT Table1.PartNumber, Table1.Quantity, Table1.Location
FROM Table1
GROUP BY Table1.PartNumber, Table1.Quantity, Table1.Location
HAVING (((Table1.Location)="Building1"));

Hope this helps..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top