Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logon failed error

Status
Not open for further replies.

samson123

Programmer
Jun 17, 2005
79
US
Hi,

I am using CR XI, Access 2000.

We have created a deployment package using merge modules.

We installed in successfully on 2 PCs. Both the PCs never had CRystal Reports or Visual Basic installed.

I am getting a Logon failed error message on one of them. The other machine does not give any such message.

The crystal report connects to the database as follows:

Dim connectioninfo as CRAXDRT.ConnectionProperties

set connectioninfo = Report.Database.Tables(1).ConnectionProperties
connectioninfo.item("Database Name") = "C:\Test.mdb"
connectioninfo.item("Database Password") = "PWD"


What could be wrong with this code ?
 
Perhaps the database is not in the same path? Is this an example or the exact code?

If the drive is elsewhere, you might try using the UNC naming instead of drive mapping, as in:

\\machinename\path...

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top