Solved

Crystal reports - prompts me for parameter fields then no report shows up

Posted on 2006-06-21
4
690 Views
Last Modified: 2012-06-27
The code below is for a crystal report control to display the report to screen.
All that happens is that the report prompts me for parameter fields then no report shows up.

CrystalReport1.ReportFileName = App.Path & "\reports\MuliAutoShip.rpt"
CrystalReport1.Destination = 1
CrystalReport1.PrintReport

Haven't done VB6 in a while, any ideas on why this is doing this?  thanks
0
Comment
Question by:MikeMCSD
  • 3
4 Comments
 
LVL 2

Expert Comment

by:superg65
ID: 16955467
Hi

Do you enter anything for the parameter request?  If you enter nothing then the report probably selects no data to display and so shows no report.  Do you need the parameter field in the report?

Cheers
G

0
 
LVL 16

Author Comment

by:MikeMCSD
ID: 16959499
thanks super,
I don't need the parameter . . how do I get rid of it?
0
 
LVL 2

Accepted Solution

by:
superg65 earned 500 total points
ID: 16964078
Hi

I use CR8.5 but I'm sure most of the options will be the same.

Did you create the report yourself or copy it from somewhere else? Might pay to make a back-up copy of the report before you delete the parameter field just in case it affects something else (like a formula that uses the parameter maybe?) and you need to go back to the previous version.

If you are running CR standalone; go to the INSERT menu at the top.
Choose FIELD OBJECT which brings up the field explorer box choose the PARAMETER FIELDS option in the tree - you should see all the parameter field(s) in your report - click on the one you want to delete, press Delete key (or right click for the context menu)  and then you will be prompted to confirm delete.

If you are running CR inside the windows IDE as a designer - the report form will have the fields listed down the left hand side of the form and you do the same deletion as there.

Good luck
Graeme

0
 
LVL 2

Expert Comment

by:superg65
ID: 16964094
OOPS - the last paragraph I meant if you are running CR inside the VB IDE not Windows - doh! Trout slap!

;)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now