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

sum total NO duplicates

Status
Not open for further replies.

MattThat

Programmer
Feb 12, 2003
13
GB
I have a form that reprisents a table [costchart], (it has a many to one relationship with shop and product).

The "chart" allows the user to select a product and a shop and assign a price. in this way a record of every price of the product and who sells at that price is created as a table.

As there is not the vastest number of fields to show I've used the Continuous Forms option.

While it's ok to have the same product in each shop, to have the same item twice (at possibly two seperate prices) in the same shop would be daft.

so how do I stop it?

thanx in advance
------------------------------------------------ Help any?

-Matt
 
Hello Matt,
Use the DISTINCT or DISTINCTROW keyword in your record source's SELECT query.

Good Luck, Robert
•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•
Professional, affordable, Access database solutions and assistance °•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°
 
This link will give you an overview of each:
Robert
•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•
Professional, affordable, Access database solutions and assistance °•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top