473,403 Members | 2,222 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,403 software developers and data experts.

Connect Crystal Report to Access MDB with security MDW file

relicx2004
I'm using VS2010(VB.NET) and Crystal report IX
The report is connected to a MS ACCESS .MDB with a .MDW system database file.
Since I want to dynamically change the database path programmatically, I'm having a hard time figuring out the correct ConnectionInfo settings in viewing the report.
I tried searching on the net but failed to come up with the correct solution.
Below is a sample of my ConnectionInfo code. Appreciate any help or suggestion.

Expand|Select|Wrap|Line Numbers
  1.  
  2. With crConnectionInfo
  3.    .ServerName = "Provider=Microsoft.Jet.OLEDB.4.0;DataSource=D:\Documents\db.mdb;Jet OLEDB:System Database=D:\Documents\CRBSecurity.mdw;User ID=MyUsername;Password=Mypassword;"
  4.    .DatabaseName = "D:\Documents\db.mdb"
  5.    .UserID = "MyUsername"
  6.    .Password = "Mypassword"
  7. End With
  8.  
Mar 4 '15 #1

✓ answered by relicx2004

Problem solved. It turned out to be an easy task.
Changed database connection of the crystal report from DAO to ADO and filled the connection information. Then modified code to:

Expand|Select|Wrap|Line Numbers
  1. With (crConnectionInfo)
  2.     .UserID = "MyMDWWorkgroupUserName"
  3.     .Password = "MyMDWWorkgroupPassword"
  4. End With
  5.  

1 1705
Problem solved. It turned out to be an easy task.
Changed database connection of the crystal report from DAO to ADO and filled the connection information. Then modified code to:

Expand|Select|Wrap|Line Numbers
  1. With (crConnectionInfo)
  2.     .UserID = "MyMDWWorkgroupUserName"
  3.     .Password = "MyMDWWorkgroupPassword"
  4. End With
  5.  
Mar 6 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: xtanto | last post by:
Hi All, We need to develope application & report that run on windows accessing Oracle on Linux. and we use Crystal Report as reporting tool. Can Crystal Report on windows access...
3
by: route_coder | last post by:
I am using access database to create a crystal report in VB.NET Everything works fine when I run on my machine. But when I am deploying it other windows machines. It is asking for database server...
0
by: Benny Ng | last post by:
Dear ALl, Now I want to export the crystal report to Excel file. But actually don't know how to export it with multiple sheet. Because sometime in some particular cases. It needs us to provided an...
3
by: gerry | last post by:
Since the CrystalReport ReportDocument apparently lacks a PrintToFile option ( doh ! ), does anyone know of any way print a report to a disk file programmatically ? Gerry
0
by: manishkumar | last post by:
I am new to vb.net2005. In vb.net 2003 code to connect to crystal report 9 is running very perfectly. But in vb.net same code is not runnig.Please help is it is urgent
1
by: SanjayAgrawal | last post by:
Hi!! I am using VB 6.0 with Crystal Report 8.5. I want to connect Report with the connction string object used in project. Plz Help me.... Thanx
2
by: ruckma | last post by:
how to connect crystal report 8.5 with visualbasic 6.0 thank u
0
by: silentd | last post by:
Hi everyone, Im really new at VB and Crystal Report and i know nothing about Crystal Report 8.5. My problem is, i have this application called CustomerM anagement that will keep data in Microsoft...
3
by: kkshansid | last post by:
i can not connect my crystal report with sql server.at my home pc i can connect it on local host by making new ado connection but same process is not working to connect with server.its givig error...
0
syedshaffee
by: syedshaffee | last post by:
Dim crpApp As New CRAXDRT.Application 'it create Object of Crystal Application Dim crpReport As CRAXDRT.Report 'it create Object of Crystal Report Dim crpsubreport As CRAXDRT.Report 'it create...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...
0
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...

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.