Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,560 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,916 people online right now. Registration is fast and FREE... Join Now!




unable to connect crystal report 8.5 in vb 6.0 using app path

 
Reply to this topicStart new topic

unable to connect crystal report 8.5 in vb 6.0 using app path, i have created program using ms access and vb 6.0 but not able to conn

tiksha
15 May, 2008 - 09:33 PM
Post #1

New D.I.C Head
*

Joined: 15 May, 2008
Posts: 1

QUOTE(PsychoCoder @ 23 Feb, 2008 - 11:15 AM) *

You're going to want to pass in the connection string to Connect . The easiest way to get your connection string is to create a new text document on your desktop, right-click on the new document and select Rename. Rename your document to Connect.udl, then click Yes on the dialog that follows. Once the UDL file is created double-click it and it will open a Data Link Properties dialog that looks like this:



On that dialog select Use connection string like in the image below



Then click the Build button. It will then walk you through creating a connection string for your Access database file. Once that is complete click the Test Connection button to ensure it is valid, then copy the text in the Connection string textbox and use that with Connect instead of App.Path & "\TEST.mdb" , like so:


vb

.Connect = "Data Source=Localhost;UID=username;PWD=password;DSQ=DataBaseName;"


Remember to replace the connection string I have in the example with the one you create with the steps above.


User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Unable To Connect Crystal Report 8.5 In Vb 6.0 Using App Path
15 May, 2008 - 09:39 PM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,465



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
** Moved topic to Visual Basic **
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 11:33PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month