Click here to Skip to main content
15,914,905 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionpass by reference is default? Pin
9-Jan-02 16:31
suss9-Jan-02 16:31 
AnswerRe: pass by reference is default? Pin
Konstantin Vasserman10-Jan-02 8:33
Konstantin Vasserman10-Jan-02 8:33 
AnswerRe: pass by reference is default? Pin
10-Jan-02 8:55
suss10-Jan-02 8:55 
Generalcomma delimited files Pin
9-Jan-02 4:17
suss9-Jan-02 4:17 
GeneralRe: comma delimited files Pin
jkgh9-Jan-02 4:55
jkgh9-Jan-02 4:55 
Generalregistry editing Pin
xxx8-Jan-02 19:15
xxx8-Jan-02 19:15 
GeneralRe: registry editing Pin
Ravish10-Jan-02 21:59
Ravish10-Jan-02 21:59 
GeneralBatch update linked tables Pin
Mattias Wahlberg8-Jan-02 2:42
Mattias Wahlberg8-Jan-02 2:42 
Hello fellow developers!

I have a problem. I am trying to optimize some database transfer code and I am stuck.

Here is a brief introduction to what I have today:

The database is a Jet 3.5 database with a lot of tables. The tables I want to update are linked together like this (PK):
Shelf(ShelfNr)-->Inventory(ShelfNr,ArticleNr)<--Article(ArticleNr).

ArticleNr is a unique number but ShelfNr is based on an auto-counter field. The problem with this that I cant use batch updates (through an ODBCDirect workspace) and at the same time use code like this:

' Pseudo VB-code
rsShelfTo.AddNew
' copy all fields except key
rsShelfTo.Fields = rsShelFrom.Fields
rsShelfTo.Update
rsShelfTo.Bookmark = rsShelfTo.LastModified
' CurrentShelf always gets the value 0 with this code, why?
CurrentShelf = rsShelfTo.Fields("ShelfNr")

I would like to include all updates in a transaction some my question is can I switch between using dbUseClientBatchCursor and dbUseDefaultCursor and still keep the transaction alive?

Any ideas?


--
Mattias Wahlberg
IDNet

GeneralTrouble automating PowerPoint XP Pin
argaleen7-Jan-02 23:46
argaleen7-Jan-02 23:46 
GeneralUsing Plugins in a program Pin
4-Jan-02 10:18
suss4-Jan-02 10:18 
QuestionVB Email Server Possible? Pin
Pumpkin Carver4-Jan-02 6:43
Pumpkin Carver4-Jan-02 6:43 
GeneralHRESULT Pin
Firoz31-Dec-01 19:59
Firoz31-Dec-01 19:59 
GeneralRe: HRESULT Pin
Ravish10-Jan-02 21:54
Ravish10-Jan-02 21:54 
GeneralLAN Chat Pin
28-Dec-01 4:33
suss28-Dec-01 4:33 
GeneralRe: LAN Chat Pin
4-Jan-02 10:40
suss4-Jan-02 10:40 
GeneralCyber Software Pin
28-Dec-01 0:24
suss28-Dec-01 0:24 
GeneralI desperately need help to create a custom IE Toolbars in Visual Basic Pin
28-Dec-01 0:00
suss28-Dec-01 0:00 
GeneralRe: I desperately need help to create a custom IE Toolbars in Visual Basic Pin
12-Jan-02 7:35
suss12-Jan-02 7:35 
GeneralI need help to create a custom IE Toolbars in Visual Basic Pin
26-Dec-01 1:58
suss26-Dec-01 1:58 
GeneralRe: I need help to create a custom IE Toolbars in Visual Basic Pin
Nick Parker26-Dec-01 11:05
protectorNick Parker26-Dec-01 11:05 
GeneralBatch compile in VB Pin
AG26-Dec-01 1:21
AG26-Dec-01 1:21 
GeneralRe: Batch compile in VB Pin
Konstantin Vasserman26-Dec-01 13:07
Konstantin Vasserman26-Dec-01 13:07 
GeneralFile Read Pin
Warlock2725-Dec-01 14:58
Warlock2725-Dec-01 14:58 
GeneralRe: File Read Pin
Nick Parker26-Dec-01 10:05
protectorNick Parker26-Dec-01 10:05 
GeneralCommand Line Parameters Pin
Firoz22-Dec-01 4:17
Firoz22-Dec-01 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.