473,770 Members | 4,198 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.reportfilen ame="c;\r1.rpt"
rep.parameterfi elds(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 2523
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.goo gle.com...
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.reportfilen ame="c;\r1.rpt"
rep.parameterfi elds(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.b iz.killspam> wrote in message
news:rQ******** ************@ne wssvr11.news.pr odigy.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.goo gle.com...
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.reportfilen ame="c;\r1.rpt"
rep.parameterfi elds(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
1366
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 reports 8.0 , the CDO IS NOT installed. But all the basic crystal report control is installed and working .What is the problem that the Active data driver not working , is it due to Windows 95/98
1
557
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 to login to the database promts from the application. The coding I used is as follows.
3
6917
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
1294
by: kd | last post by:
Hi All, How to use crystal reports in asp.net? kd
4
1463
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 same DSN must be created in their machine. I would like to know if I can substitute the DSN at runtime with info provided by the VB.NET application instead. Your help is greatly appreciated. Bill
0
1008
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 data in the report so far perfect my requirement is i need to show the multiple instnace of the same report but once i try to open the second instance of the report keeping the first instance open i am getting an error OBJECT REFERENCE NOT SET TO...
0
2135
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
1038
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 seems to have some values missing. E.g. The Dynamic cascading parameter is Class >> Type >Category and instead of getting the 4 options of Class which I know are in the view, I only get 2. And if I swap it around so its Type >Class >Category then...
1
1611
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 Attendance Status which has a value of P,A,Ex or L and Block which has a value of 1, 2, 3, 4 or 5. I am creating a report based on two tables. My report has group by student full name and sub group by attendance - i need to count how many A, Ex and L...
0
1363
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 generate a report. Actually i have first selected ASP.NET website with c# language , then i added a crystal report using add item in solution explorer . Later i had setup a new data connection in server explorer. The new connection has got a database...
0
10231
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10005
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7416
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6679
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.