Select Distinct
From: Peter (ched_at_yahoo.com)
Date: 08/19/04
- Next message: Don Vaillancourt: "Re: Select Distinct"
- Previous message: kaeli: "Re: Database creation"
- Next in thread: Don Vaillancourt: "Re: Select Distinct"
- Reply: Don Vaillancourt: "Re: Select Distinct"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 19 Aug 2004 20:06:39 GMT
I am trying to create a resultset from an Access DB. I am using the a Select
Distinct statement to get unique results.
Then I am using a while resultset.next .....statement to step thru the
result set. The SQL works perfect in Access so I am happy with that. The
problem is that when I start to loop thru the resultset with a print
statement I get the results I expeccted until it should drop out of the
loop, but it doesnt. I then get a SQL error. If I remove the distinct
command the while loop runs correctly.
Any idea why using a SELECT DISTINCT messes up a while loop?????
Thanks for any help you can give.
- Next message: Don Vaillancourt: "Re: Select Distinct"
- Previous message: kaeli: "Re: Database creation"
- Next in thread: Don Vaillancourt: "Re: Select Distinct"
- Reply: Don Vaillancourt: "Re: Select Distinct"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|