You are viewing limited content. For full access, please sign in.

Question

Question

lookup... remove duplicates in table

asked on April 16

I have a form that looks up job titles and puts them into a table. It is pulling form a staff listing, so some items are duplicated. Is there a way to just pull the first unique title, or delete the duplicate titles?

0 0

Answer

APPROVED ANSWER
replied on April 16

This should probably be handled with the query rather than on the form side.

You could do it with a View or Stored Procedure that incorporates SELECT DISTINCT.

2 0

Replies

replied on April 16 Show version history

You'll want to set up a separate query rule to Select only the Job Title column, and set the Quantifier to "Distinct".

Then you can pull the unique Job Titles into your form using that query, and use your other/main query to fill in the remaining columns where Job Title equals Job Title.

Let me know if you want me to explain a bit better and I can spam you with some screenshots to show what I mean. :)

 

Editing to add: Sorry, wasn't thinking clearly - You should be able to add the other columns to your query as well, assuming that all of the other information matches & is unique to the job title. You just wouldn't want any unique/individual staff information as that would repeat rows. Hope that makes sense!

0 0
replied on April 17

I haven't played with stored procedures before. Always something new to learn. Thanks.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.