LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Workspace / Transactions

In order to use transactions (my macro upload data from Excel to Access), I
have to create a workspace variable, as described in the code below.

Dim wrkDefault As Workspace
Set wrkDefault = DBEngine.Workspaces(0)
wrkDefault.BeginTrans
....
wrkDefaut.CommitTrans

However, whenever I try to run the macro, I get the message: "Compile Error:
User-defined Type not defined". I used to think Workspace was not a
user-defined type. Does anyone know why it is happening?

Thanks in advance,

Paulo
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Last few transactions Mohan Babu Excel Worksheet Functions 8 October 15th 09 05:00 PM
Total each item's transactions Cam1234 Excel Discussion (Misc queries) 2 March 31st 08 04:41 PM
Log of Transactions Snakeoids Excel Discussion (Misc queries) 1 October 27th 07 12:48 AM
Count transactions below a threshold dzd&confused[_2_] Excel Discussion (Misc queries) 2 August 10th 07 01:00 PM
Workspace & Links referenced when workspace opened. LTB @ Miami, OK Excel Worksheet Functions 2 March 7th 06 10:28 PM


All times are GMT +1. The time now is 10:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"