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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call Set Trans or SetTransObject Function Error

Status
Not open for further replies.

bigpapi

Programmer
Aug 1, 2006
16
CA
Hey folks;


i'm getting the following error when i try to retrieve values on a data window.

"Call Set Trans or SetTransObject Function"

Here is my code:

dw_mytest.SetTransObject( SQLCA )
dw_mytest.Retrieve()

My database connection is set and i can retrieve values in the data window screen.

Is there something else i am missing???
 
Have you checked the return code from the SetTransObject call?

Matt

"Nature forges everything on the anvil of time
 
Try adding this directly after your .Retrieve():

MessageBox( 'SQLcode...', 'SQL Code: ' + SQLCA.SQLerrText )

If you're booted out before that, then move it before the .Retrieve().
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top