473,398 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Help needed in access to Crystal reports..

Hai

I have a designed Crystal report .rpt file which has 4 access tables
.. After designing the report i put a parameter field which filteres
the desired records quite naturally. Every thing works fine in the
crystal report design time as well as in the preview asking parameters
..

But if i call it thru my VB form it works nice after removing the
parameteres.
But if pass my parameter value , it gives the error like

** can not open sql server **

My code is

rep.reportfilename="c;\r1.rpt"
rep.parameterfields(0)="p1;" & val(t1.text) & ";true"
crep.action =1

the above code is the same one which i used to get rows from SQL
SERVER by passing the parameter.

MY query is

Does the parameter defining way differs from sql server to Access ?
Or please tell me how to use parameteres in Crystal reports for
Access.

Or what is the reason it works nice in disign time & preview and not
working in Vb.

With thanks
Raghu
Nov 12 '05 #1
3 2509
How are you binding? What version and edition of CR are you using? Are you
using OLEDB, ODBC, or the Jet driver to connect to the mdb?

The selection for database access methods are made in the first steps of the
wizard or when you add/remove a Database. If you want to experiment by
changing driver/access methods - do so by setting the location to a
different database and tables, then choose to replace the ones you have with
the ones you select in the new location. Crystal is a bit trixy when doing
this - but it can be done without scrapping your report and starting over.
I would recommend picking "Database Files" then picking the mdb from there,
rather than oledb, ado, odbc, et...

If you are using OLEDB - you will probably have to write some code that
tells your report at runtime where the database is and how to access it. If
other methods don't work - post back and I will see if I can dig up some
code for you.

--
Jerry Boone
Analytical Technologies, Inc.
http://www.antech.biz
Secure Hosting and Development Solutions for ASP, ASP.NET, SQL Server, and
Access
"Raghuraman" <ra************@rediffmail.com> wrote in message
news:66**************************@posting.google.c om...
Hai

I have a designed Crystal report .rpt file which has 4 access tables
. After designing the report i put a parameter field which filteres
the desired records quite naturally. Every thing works fine in the
crystal report design time as well as in the preview asking parameters
.

But if i call it thru my VB form it works nice after removing the
parameteres.
But if pass my parameter value , it gives the error like

** can not open sql server **

My code is

rep.reportfilename="c;\r1.rpt"
rep.parameterfields(0)="p1;" & val(t1.text) & ";true"
crep.action =1

the above code is the same one which i used to get rows from SQL
SERVER by passing the parameter.

MY query is

Does the parameter defining way differs from sql server to Access ?
Or please tell me how to use parameteres in Crystal reports for
Access.

Or what is the reason it works nice in disign time & preview and not
working in Vb.

With thanks
Raghu

Nov 12 '05 #2
By the way - there is a free book available from a very generous person who
was having trouble getting it published.

Check it out here... it's had 16,000 registrations now and some noise I
heard is saying it will be for sale on Amazon in Feb.

http://www.crystalreportsbook.com/

--
Jerry Boone
Analytical Technologies, Inc.
http://www.antech.biz
Secure Hosting and Development Solutions for ASP, ASP.NET, SQL Server, and
Access
"Jerry Boone" <je***@antech.biz.killspam> wrote in message
news:rQ********************@newssvr11.news.prodigy .com...
How are you binding? What version and edition of CR are you using? Are you using OLEDB, ODBC, or the Jet driver to connect to the mdb?

The selection for database access methods are made in the first steps of the wizard or when you add/remove a Database. If you want to experiment by
changing driver/access methods - do so by setting the location to a
different database and tables, then choose to replace the ones you have with the ones you select in the new location. Crystal is a bit trixy when doing this - but it can be done without scrapping your report and starting over.
I would recommend picking "Database Files" then picking the mdb from there, rather than oledb, ado, odbc, et...

If you are using OLEDB - you will probably have to write some code that
tells your report at runtime where the database is and how to access it. If other methods don't work - post back and I will see if I can dig up some
code for you.

--
Jerry Boone
Analytical Technologies, Inc.
http://www.antech.biz
Secure Hosting and Development Solutions for ASP, ASP.NET, SQL Server, and
Access
"Raghuraman" <ra************@rediffmail.com> wrote in message
news:66**************************@posting.google.c om...
Hai

I have a designed Crystal report .rpt file which has 4 access tables
. After designing the report i put a parameter field which filteres
the desired records quite naturally. Every thing works fine in the
crystal report design time as well as in the preview asking parameters
.

But if i call it thru my VB form it works nice after removing the
parameteres.
But if pass my parameter value , it gives the error like

** can not open sql server **

My code is

rep.reportfilename="c;\r1.rpt"
rep.parameterfields(0)="p1;" & val(t1.text) & ";true"
crep.action =1

the above code is the same one which i used to get rows from SQL
SERVER by passing the parameter.

MY query is

Does the parameter defining way differs from sql server to Access ?
Or please tell me how to use parameteres in Crystal reports for
Access.

Or what is the reason it works nice in disign time & preview and not
working in Vb.

With thanks
Raghu


Nov 12 '05 #3
Hai Jerry,

Thanks for your Step. Now i am in the Crystalbook . I shall get back to
u if i have some probs.
With Thanks
Raghu

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Raghuraman | last post by:
Hai , Please forgive me for asking about Crystal reports in Database groups (I also sent a post to cLIENT SERVER) My clients have system with the windows 95 & 95.If i install the crystal...
1
by: Dilini Ginige | last post by:
Hi, I need to open a crystal report through the crystalreportform viewer in a C# project. I used a view in the crystal report.But even when I give the logoninfo from the code the dialog box...
3
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
1
by: kd | last post by:
Hi All, How to use crystal reports in asp.net? kd
4
by: Bill Nguyen | last post by:
I created several CR reports (in r8.5 and r10) using a system DSN named "CrystalUser" with username and login ID and use them in my VB.NET app. In order for my clients to run the report, the...
0
by: zoneal | last post by:
Hello I need your help regarding crystal report. I am using interop control of Crystal Active X Report Viewer Control in vb.net application. When i run the apllication the report viewer shows the...
0
by: Swaroop Bhattacharyya | last post by:
I want to access IBM DB2 CLP from Crystal Reports.This is for schedueling a job in Crystal Reports. How will i link the Crystal Reports and the IBM DB2 CLP ?
0
by: Raymond Luxury-Yacht | last post by:
I have a Crystal 11 Report which use the a dynamic cascading parameter. The report looks at a view I have within SQL Server 2000, however whichever field I have at the top of the parameter list...
1
by: sjivanjee | last post by:
Help In Access 2007 - Report (Grouping and Sub Totaling) I have two table one stores student information and other one is for their attendance. In the attendance table their is a field called...
0
by: shwethatj | last post by:
Can anyone please help me..... In Crystal Reports , how to access data using PULL method .. I have got a table in server explorer which has 3 got fields. But i dont know how to access it and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.