Greetings Dell,
I thank you very much for your reply. I had tried in the sub report to use the Database Expert to link the Account_No field of the XLS file to the Account field of the SQL Server table using Left Outer Join, Not Enforced, with != Link Type but I get account numbers that are in the SQL Server table since those account numbers are in the XLS file. I want to show only the acct numbers in the XLS file that are not in the SQL Server table.
My main report links the two via the Database Expert with Inner Join, Not Enforced, and the = Link Type.
In the sub rpt using Database Expert, I tried Left Outer Join, Enforced From, and !=, and again I get all of the acct numbers in the XLS file including accounts that are in the SQL Server table.
When I try in sub report via Database Expert to Left Outer Join, Enforced To, and !=, I get bunches upon bunches of records and the first account # 10011 in the XLS file is listed repeatedly for 293 pages in the Preview of the report before the 2nd account number 10078 of the XLS file begins to be listed repeatedly for bunches upon bunches of pages.
I tried in sub rpt via Database Expert to link the XLS to the SQL Server tbl using Left Outer Join, Enforced Both, and !=, but the first account # in the XLS is listed for the 293 pages, et cetera.
I tried in sub rpt in Database Expert to link XLS to SQL Server table using Inner Join, Not Enforced, and != as the Link Type, but I still get in the results some accounts that are in the SQL Server table.
When using for sub rpt the Database Expert to link the XLS file to the SQL Server using Inner Join, Enforced From, and !=, again I get in the results some account numbers that are in the SQL Server table.
When I try in Database Expert of sub rpt to link XLS file to SQL Server tbl using Inner Join, Enforced To, and != for not equal Link Type, I get the first account number in the XLS file for nearly 300 pages of the report, then I get the second account number in the XLS file for bunches upon bunches of pages, et cetera.
Using Database Expert in sub rpt to link the XLS file to SQL Server table using Inner Join, Enforced Both, and the !=, I get the first account number in the XLS file for nearly 300 pages of the report, then I get the second account number in the XLS file for bunches upon bunches of pages, et cetera.
There is no testing SQL Server database and client/server application for this proprietary software here at work unfortunately. I cannot get permission to get onto the Prod SQL Server. Were I to be able to get onto SQL Server and were I to have two SQL Server tables in which I wanted rows from one SQL Server table that are not in the other SQL Server table, I think (though I could be wrong of course) that I could use something like the following:
Select c.CustomerId, O.OrderId
From Customers c
Left Outer Join Orders o
On c.CustomerId = o.CustomerId
Where o.OrderId Is Null
I cannot get onto the SQL Server though, plus I do not know how to use an Excel file in the SQL Server query/view.
Anyway Dell, I very much appreciate your reply. I cannot figure out how to use a Crystal Report to show the records in the Excel file that are NOT in the SQL Server table for the sub report. The main report is easy and I can show the records that are both in the XLS file AND in the SQL Server table.
Thanks,
Hviezdoslav