Re: Linking to Access in VB
From: onedaywhen (onedaywhen_at_fmail.co.uk)
Date: 02/25/04
- Next message: Jorge Cavalheiro: "can't get an answer to a crystal rpt question re database connection - Cor, Herfried, Armin, Ken Tucker?"
- Previous message: ksskumar: "How to create a file link in RichTextBox ?"
- In reply to: Bob Boran: "Re: Linking to Access in VB"
- Next in thread: Leon.Kemp: "Re: Linking to Access in VB"
- Messages sorted by: [ date ] [ thread ]
Date: 25 Feb 2004 01:43:02 -0800
"Bob Boran" <mcsdsmurf@hotmail.com> wrote in message news:<OZ3OSmy#DHA.684@tk2msftngp13.phx.gbl>...
> One of the biggest changes from ADO to ADO.net is the disconnected model
> that ADO.Net employs. This means that where in ADO, when you added or
> altered a row, it wrote to the database.
Not so. I've always used ADO classic in a disconnected fashion and
only 'write to the database' when the connection has been
re-established e.g.
' Open connection
Connect True
' Set recordset properties
With m_rsMain
' Client-side cursor crucial for disconnected recordset
.CursorLocation = adUseClient
.CursorType = adOpenStatic
.LockType = adLockBatchOptimistic
.Source = strSql
.ActiveConnection = m_oConn
.Open
.ActiveConnection = Nothing ' << disconnect
End With
' Close connection
Connect False
' Do something with disconnected recordset
...
--
- Next message: Jorge Cavalheiro: "can't get an answer to a crystal rpt question re database connection - Cor, Herfried, Armin, Ken Tucker?"
- Previous message: ksskumar: "How to create a file link in RichTextBox ?"
- In reply to: Bob Boran: "Re: Linking to Access in VB"
- Next in thread: Leon.Kemp: "Re: Linking to Access in VB"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|