SQL Query Causing Inifinate Output

P

Philip McCracken

When I change the "aplink.withdrawn" to include a new field with a
similar name "aplinks.pwithdrawn,aplinks.awithdrawn", the output in the
web page is blank and un-ending. When I test this query against the
Foxpro database, it works correctly.

'Good Query
sql2="SELECT DISTINCT
aplinks.partyno,attorney.*,aplinks.party_type,aplinks.partyname,aplinks.
withdrawn FROM attorney,aplinks WHERE attorney.dktno LIKE '%" & case_no
& "%' AND aplinks.dktno LIKE '%" & case_no & "%' AND
attorney.attyno=aplinks.attyno ORDER BY aplinks.partyname ASC,
aplinks.party_type ASC, attorney.principal DESC"

' NEW Query
sql2="SELECT DISTINCT
aplinks.partyno,attorney.*,aplinks.party_type,aplinks.partyname,aplinks.
pwithdrawn,aplinks.awithdrawn FROM attorney,aplinks WHERE attorney.dktno
LIKE '%" & case_no & "%' AND aplinks.dktno LIKE '%" & case_no & "%' AND
attorney.attyno=aplinks.attyno ORDER BY aplinks.partyname ASC,
aplinks.party_type ASC, attorney.principal DESC"





*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top