index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: Q re SQL to asp rep wzrd :: (2)Post a New Message | Post a Reply
Feb 2 2005, 12:32 AM
 Q re SQL to asp rep wzrdPost a Reply
 rassaman

View this author's profile Send this author a private message

since: Oct 1, 2003
from: somewhere

can i build a report similar to the following plz?

SELECT custs.custid, custs.custName
FROM custs LEFT JOIN ords ON custs.custid = ords.CustId GROUP BY
custs.custid, custs.custName, ords.CustId HAVING (((ords.CustId) Is Null Or
(ords.CustId)<>"2"));

if so how?

thank you.

* excuse this post if dup

Feb 2 2005, 2:40 PM
 Re: Q re SQL to asp rep wzrdPost a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

1. Select the Custs and Ords tables and click Build Report
2. Select the custid and custName fields from the Custs table.
     Also enter the relatioship in the relationship text box custs.custid = ords.CustId
3. Navigate to the section Add filters to your report. (Click Next twice)
4. Select Ords.CustID (field) and IS NULL (filter) and Click Add Filter
5. Select the option OR where it says Connect filters using
4. Select Ords.CustID (field) and is not equal to (filter), enter 2 (Value)  and Click Add Filter
5. Click Next. Select Summary Report
6. Click Next. Select Add record count
7. Click Finish

SELECT custs.custid, custs.custName
FROM custs LEFT JOIN ords ON custs.custid = ords.CustId GROUP BY
custs.custid, custs.custName, ords.CustId HAVING (((ords.CustId) Is Null Or
(ords.CustId)<>"2"));



-------------------------
Ghost
Pages: (1)   [1]

search this forum: