|
-
May 10th, 2001, 05:50 AM
#1
Distinct predicate
Hi! I am using ado in my current project. I am setting the record source of the ado run time. In the record source, I used the DISTINCT predicate as part of my SQL. But the result still displays duplicate records. The ado is bound to a grid and displays four fields. The duplicate records displays exactly the same data for the four fields. Please help me. Thank you.
-
May 10th, 2001, 06:15 AM
#2
Re: Distinct predicate
Do you have a primary key set. I dunno if that will make a difference, but it is all I can think of
-
May 10th, 2001, 07:04 AM
#3
Re: Distinct predicate
Post your SQL
Iouri Boutchkine
[email protected]
-
May 10th, 2001, 09:05 PM
#4
Re: Distinct predicate
my sql is:
SELECT DISTINCT(handling_lawyer.docketno), draft_documents.date_creatd, draft_documents.docket_num, draft_documents.draft_name, draft_documents.rowid, handling_lawyer.transactiontype FROM handling_lawyer, draft_documents WHERE draft_documents.draft LIKE '%" & txtSearch.Text & "%' AND draft_documents.docket_num = handling_lawyer.docketno AND handling_lawyer.transactiontype = 'case'
-
May 11th, 2001, 07:00 AM
#5
Re: Distinct predicate
Try to use the GROUP BY clause for the handling_lawyer.docketno.
-Cool Bizs
Good Luck,
-Cool Bizs
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|