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

Show unique records in Datasheet view

Status
Not open for further replies.

btrini10

IS-IT--Management
Dec 5, 2006
73
US
Hello all
I have a form that allows a user to select criteria which is used to construct a where clause. The where clause is then used to filter a subform which shows in the main form's footer. The criteria on the search form includes fields that are on the many side of a number of relationships. As a result, the subform displays duplicate values for a number of records. Is there a way for me to select specific fields and not show any records where these fields are repeated? I guess it is in essence what the group function would do for a report.
 
Can't you use the DISTINCT predicate in your subform's RecordSource SQL ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
I think part of the issue is that I am building my where clause on fields that are not repeating on the sub-form. Therefore, using distinct does not eliminate the repeats. In order for distinct to work, I think I would have to remove all the fields that are on the many side of my one to many relationships. If I could use Distinct only for cpecific fields, but leave the others fields as part of the query so that they can be searched. Hope this makes sense.
 
Hey PHV, any other ideas as to how I can accomplish this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top