BlakeMcKenna
asked on
Is it possible to debug a Crystal Report while running?
I have a Crystal Report 10 that is running under a VB.Net application. The report will work for some criteria and not work for other criteria. The RecordSelectionFormula is very simple and I can actually view the values via the .Net app. However, once it goes into the CR, I can't track the data. Does CR have any kind of debug mode?
Thanks,
Blake
Thanks,
Blake
ASKER
I'm using SQL Server 2005.
crDOC.RecordSelectionFormu la = "{tblBatchDetail.rowID} = " & mRowID
The mRowID has a valid value to. It only happens on a specific record.
crDOC.RecordSelectionFormu
The mRowID has a valid value to. It only happens on a specific record.
What is the selection statement? is this multiple tables that ar joined?
mlmcc
mlmcc
ASKER
Yes, I have multiple tables. As far as the selection statement...I assume you mean the SQL Query that CR creates automatically. Here it is:
SELECT "tblBatchDetail"."supplier 2", "tblBatchDetail"."terminal Name", "tblBatchDetail"."terminal Number", "tblBatchDetail"."splcCode ", "tblBatchDetail"."carrierN ame", "tblBatchDetail"."carrierS CAC", "tblBatchDetail"."fein", "tblBatchDetail"."destCity ", "tblBatchDetail"."destStat e", "tblBatchDetail"."bolNumbe r", "tblBatchDetail"."poNumber ", "tblBatchDetail"."startLoa dDateTime" , "tblBatchDetail"."endLoadD ateTime", "tblBatchDetail"."productD esc", "tblBatchDetail"."prodCode ", "tblBatchDetail"."grossGal lons", "tblBatchDetail"."netGallo ns", "tblBatchHeader"."batchDat eTime", "tblConsignees"."AdventCus tomerID", "tblConsignees"."AdventCus tLocNumber ", "tblConsignees"."AdventPri cingVendor ", "tblCarriers"."AdventCarri erCD", "tblConsignees"."consignee ", "tblConsignees"."AdventInv SiteID", "tblConsignees"."AdventVen dorLocatio nID", "tblProducts"."AdventProdu ctCD"
FROM ((("VendorReports"."dbo"." tblConsign ees" "tblConsignees" INNER JOIN "VendorReports"."dbo"."tbl BatchDetai l" "tblBatchDetail" ON "tblConsignees"."consignee "="tblBatc hDetail"." destCustNu mber") INNER JOIN "VendorReports"."dbo"."tbl BatchHeade r" "tblBatchHeader" ON (("tblConsignees"."supplie r"="tblBat chHeader". "supplier" ) AND ("tblConsignees"."terminal "="tblBatc hHeader"." terminal") ) AND ("tblBatchDetail"."rowID"= "tblBatchH eader"."ro wID")) INNER JOIN "VendorReports"."dbo"."tbl Carriers" "tblCarriers" ON (("tblBatchHeader"."suppli er"="tblCa rriers"."s upplier") AND ("tblBatchHeader"."termina l"="tblCar riers"."te rminal")) AND ("tblBatchDetail"."carrier Name"="tbl Carriers". "carrierCD ")) INNER JOIN "VendorReports"."dbo"."tbl Products" "tblProducts" ON ("tblBatchHeader"."supplie r"="tblPro ducts"."su pplier") AND ("tblBatchHeader"."termina l"="tblPro ducts"."te rminal")
SELECT "tblBatchDetail"."supplier
FROM ((("VendorReports"."dbo"."
If you run the report with no selection statement added do you get the records you are missing?
Since you use INNER JOINs corresponding records must exist in all tables.
mlmcc
Since you use INNER JOINs corresponding records must exist in all tables.
mlmcc
ASKER
I'm not real good with SQL especially INNER, OUTER, LEFT, and RIGHT joins. I have 3 lookup (cross-reference) tables that are joined by key fields and I'm not real sure if they are what's causing the problem.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad i could help
mlmcc
mlmcc
What SQL is used?
What selection criteria?
mlmcc