If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Cannot open SQL server error: 20599

View Poll Results: can not open sql server err:20599
vB code is ON 1 100.00%
HTML code is ON 1 100.00%
Multiple Choice Poll. Voters: 1. You may not vote on this poll

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-29-03, 06:56
amol.sathe amol.sathe is offline
Registered User
 
Join Date: Sep 2003
Posts: 5
Cannot open SQL server error: 20599

hi all

i am using crystal report 8.5 and calling it from VB.6.0 but if i change the machine and tried to run the report through the application i am getting the following error

error number : 20599 "can not open sql server"

My source code

//connection string
strCon = "Driver=Microsoft Access Driver (*.mdb);DBQ=" & App.Path & "\Data\Database.mdb"

Set dbcon = New ADODB.Connection
dbcon.Open strCon

//


// calling report
cr1.ReportFileName = App.Path & "\Reports\New Reports\H-ListRepeatDoctors.rpt"
cr1.ReplaceSelectionFormula ("{ado.TrnsDoctor.empno}=" & Val(txtSelTe.Text))
cr1.DiscardSavedData = True
cr1.RetrieveDataFiles
cr1.WindowShowRefreshBtn = True
cr1.WindowParentHandle = MDILenbrook2002.hWnd
cr1.WindowShowRefreshBtn = True
cr1.Action = 2

so plzsuggest the solution

thanks

amol
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On