Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

DBEngine.BeginTrans problem

 
   Database Forums (Home) -> Visual Basic -> DAO RSS
Next:  copying data oracle2sql  
Author Message
SAL

External


Since: Mar 23, 2007
Posts: 1



(Msg. 1) Posted: Fri Mar 23, 2007 10:18 am
Post subject: DBEngine.BeginTrans problem
Archived from groups: microsoft>public>vb>database>dao (more info?)

Hello all,
is there an reason that the statement
DBEngine.BeginTrans would cause an ActiveX component can't create object
error? I've never seen this before and am a little stumped.
If I remove the begin and end trans lines of code, the code execute as
expected.


S

 >> Stay informed about: DBEngine.BeginTrans problem 
Back to top
Login to vote
Phil H

External


Since: Feb 26, 2007
Posts: 1



(Msg. 2) Posted: Sat Mar 24, 2007 10:17 pm
Post subject: Re: DBEngine.BeginTrans problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Maybe your new code introduce error that ypu did not handle and the
execution goes into a path that skip the ActiveX creation ?!!
"Richard T. Edwards" wrote in message

> Why not show all the code dealing with DAO otherwise, its hard to help you
> resolve it.
>
>
> "SAL" wrote in message
>
>> Hello all,
>> is there an reason that the statement
>> DBEngine.BeginTrans would cause an ActiveX component can't create object
>> error? I've never seen this before and am a little stumped.
>> If I remove the begin and end trans lines of code, the code execute as
>> expected.
>>
>>
>> S
>>
>

 >> Stay informed about: DBEngine.BeginTrans problem 
Back to top
Login to vote
Paul Clement

External


Since: Sep 02, 2003
Posts: 526



(Msg. 3) Posted: Mon Mar 26, 2007 8:00 am
Post subject: Re: DBEngine.BeginTrans problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, 23 Mar 2007 10:18:41 -0700, "SAL" wrote:

¤ Hello all,
¤ is there an reason that the statement
¤ DBEngine.BeginTrans would cause an ActiveX component can't create object
¤ error? I've never seen this before and am a little stumped.
¤ If I remove the begin and end trans lines of code, the code execute as
¤ expected.

I would start your transaction on the Workspace instead of the database engine, or omit DBEngine
completely because it isn't necessary.


Paul
~~~~
Microsoft MVP (Visual Basic)
 >> Stay informed about: DBEngine.BeginTrans problem 
Back to top
Login to vote
Richard T. Edwards

External


Since: Feb 04, 2006
Posts: 14



(Msg. 4) Posted: Wed Mar 28, 2007 6:55 am
Post subject: Re: DBEngine.BeginTrans problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Why not show all the code dealing with DAO otherwise, its hard to help you
resolve it.


"SAL" wrote in message

> Hello all,
> is there an reason that the statement
> DBEngine.BeginTrans would cause an ActiveX component can't create object
> error? I've never seen this before and am a little stumped.
> If I remove the begin and end trans lines of code, the code execute as
> expected.
>
>
> S
>
 >> Stay informed about: DBEngine.BeginTrans problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
VB5/DAO problem - Hi All, I have a couple of old apps in VB5 which I need to keep on working on for a little longer. (Yes, I am upgrading them to .NET). I uninstalled MS Office 97 from the machine which has VB5 installed on it, and installed MS Office 2003. VB5 is now...

DAO and ADO with Access 2002 problem - I'm trying to optimize some very old code, and I've hit a stumbling block. We use Access as our frontend, and SQL Server as our backend. Here's a code fragment from the old implementation of a search for a specific record:..

dao select query problem in mfc C++ - hi, i'm using dao for the first time to connect to a MS Access db. I've been following the MS example for a very basic query. This is the MS example: The following code shows the process of creating a recordset from a querydef: // pdb is a pointer t...

Problem updating dataset - I have a form with three data grids on it; each of which is bound to a dataset. These grids are all related such that the first is the parent to the second and the second is a parent to the third. During runtime if the user makes changes or additions....

Timeout expired problem - I am using vb6 to access a sql server database using dao, where I am doing multiple extracts using DTS and then truncating the table and looping until I am done. I have about 17 tables and invariably when my program gets to aobut the 12th table or so...
   Database Forums (Home) -> Visual Basic -> DAO All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]