Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR XI and Access Queries

Status
Not open for further replies.

rjoubert

Programmer
Oct 2, 2003
1,843
US
Using CR XI Developer, VB.NET, and MS Access

I have a report that I have based on a query developed in MS Access. The report runs fine through the CR interface, but when I run it through my VB.NET app, it errors out. The error relates to the record selection formula...seemingly it cannot access the values in the query fields.

I have several other reports that utilize the same Access database, and I'm using the same VB.NET code to run these other reports...they all run just fine. The only difference is that the other reports are based on Access tables, not queries.

Can anyone offer any help?
 
Additional info...

I've removed the record selection formula (and a couple of conditional formatting formulas) and tried to run the report through my VB.NET app. This time there is no error, but there's also no data. I am passing the data to the report through VB.NET, which again, works for my other reports.
 
More info...

I created a table from this query and changed my report to use the table instead of the query, but it didn't change a thing. I still get no data, and when I reintroduce the record selection formula, I get that error again. I have verified that my VB.NET is retrieving the data from the database and that there is data.
 
Please disregard this issue...it seems that when I pulled my report into my VB.NET project, it must've been corrupted somehow. After I deleted it from my project and readded a few times, it finally worked.

I'm surprised this isn't in the CR XI technical documentation anywhere...[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top