There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox firewall freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop malware motherboard mouse network networking outlook outlook 2007 popups power printer problem ram router screen slow sound trojan usb virus vista vista 32-bit windows windows xp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Crystal Reports - problems with subreports


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
AngieGirl's Avatar
Junior Member with 6 posts.
 
Join Date: Jun 2003
07-Aug-2003, 09:26 PM #1
Unhappy Crystal Reports - problems with subreports
Hi!!!

I have a VB application, a report must be lunch from it, this report has 3 subreports, but the problem is that the main report connects to SQL Server in a Server A and the subreports connect to Sybase System 11 in a Server B, the report works with both connections in the Crystal Report Designer, but when I use the OCX in vb, the report gives me an error "20599 Cannot Open SQL Server" I have other reports without subreports some using the Sybase connection and some others the Sql Server connection and all of them runs perfectly.

So the problem appears in a report with subreports. I have read and implement a lot of suggestions without find a solution.

I need help in this, because I had spent a lot of time looking for a solution without success.
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
08-Aug-2003, 03:11 PM #2
If other reports can run using the connections to either database then there is obviously a problem with your current report setup. Can you run the sub-reports outside of the main report and get the desired results? If you can get the sub-reports to run separately try your main form minus the sub-reports. Are the parent/child fields linked correctly as well?
__________________
**Disclaimer** Anything below this line ^ is part of my signature for those that may be confused

Sadly, there are no integers on this scale, so your gangly adolescent attempt to be clever has proved futile....Dieter

I have the right "NOT" to be tolerant of others because they are different, weird, or tick me off.....Parody of Andy Rooney

There are no stupid questions, but there are a LOT of inquisitive idiots.
AngieGirl's Avatar
Junior Member with 6 posts.
 
Join Date: Jun 2003
08-Aug-2003, 03:33 PM #3
Well, I have tried this, I already run my subreports and main report separately and they work fine, there is no problem with the links because in the Crystal Report Designer the report works fine, I thought that the problem could be that the main report is using an ODBC Connection, but the subreports use a direct connection to sybase, I made another report with both connections using ODBC but the problem de persists.
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
08-Aug-2003, 03:43 PM #4
Is the report designer adding anything extra to the report that after it is saved is messing with the final report? Are the ODBC connections all on your local PC or running at the server with DSN entries? Might want to upgrade MDAC just in case and possibly see if there is an updated ODBC driver for Sybase.
__________________
**Disclaimer** Anything below this line ^ is part of my signature for those that may be confused

Sadly, there are no integers on this scale, so your gangly adolescent attempt to be clever has proved futile....Dieter

I have the right "NOT" to be tolerant of others because they are different, weird, or tick me off.....Parody of Andy Rooney

There are no stupid questions, but there are a LOT of inquisitive idiots.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 02:34 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.