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!

crPESetNthTableLogOnInfo ERROR

Status
Not open for further replies.
Sep 22, 2002
2
AU
I have an existing VB 6 executable that uses API calls to execute RPT files.
Parameters are passed for database login (ODBC connection) and an INI file is read to obtain any additional record selection that is required.

This has worked successfully on Crystal versions 5 (~1998)thru to 8.5 (2004). Now I've upgraded to version 10 via version 9 and it fails trying to set logon details for the tables.

The only change has been to replace/update the include files - GLOBAL32 and CRWRAP.

The specific code line is: r% = crPESetNthTableLogOnInfo(1, 0, "ODBCNAME", "SID", "UID", "UPWD", 1)
r% returns 0 which is an error; but PEGetErrorCode returns 0 as well which is meaningless.

I was wondering if anyone has encountered this problem or can tell me what I'm missing. It's driving me insane.

Thanks for reading this and I hope you can help me
Cheers
Leanne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top