o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

ADODB - Slow update -

Greeting,

I have 2 adodb.connections, and 1 recordset for each of the connections. Both recordsets open the same ms-access table.

while I update changes to one recordset and requery on the other recordset, the changes is not reflected on that other recordset immediately. Only after about 1 or 2 seconds then the changes appear when I requery again. That's the problem.

The problem will not occur if I open the connection only just before I want to make changes.

Is there any solution to this? Thanx in advance for reply...

If you do not understand the problem, here is the complete scenario:

1) Open connection A 2) Open recordset A on connection A 3) Open connection B 4) Open recordset B on connection B 5) User input (takes some time) 6) Update recordset B 7) Requery recordset A 8) PROBLEM - Recordset A does not reflect any changes 9) Recordset A requery again after 2 seconds 10) Changes reflected

The problem goes away if I change the procedures to: 1) Open connection A 2) Open recordset A on connection A 3) User input (takes some time) 4) Open connection B 5) Open recordset B on connection B 6) Update recordset B 7) Requery recordset A 8) SUCCESS - Recordset A reflects the changes

Thanx again very much for your time. Your help is greatly appreciated.

 

why is this board so slow... -
what happened? ever since the update, this site has been painfully slow.


update blob in Postgresql database -
The VB code: ............................. Dim cn As ADODB.Connection Dim rs As ADODB.Recordset . . . Dim Mstream As New ADODB.Stream Set Mstream = New ADODB.Stream Mstream.Type = adTypeBinary Mstream.Open Mstream.LoadFromFile "e:\c.dat" rs.Fields(fil2).Value =


db update slow -
I am using vb6 to update an access db with 1600 csv files once a week in one go. The csv files have 106 fields in each. When i started i was only processing 500 csv files realy quick. But now 1600 file starts to get slow some times stops (crash) could it be access or dose my vb need lo


Synchronise Record -
I try to update the DB with the contains of rs2. rs2 as been updated in my "business service" and i want to update the DB rs2 is a recordset from my table Participant. Some one can help me ? Private Sub MAJ_DS() Dim cn As ADODB.Connection Dim rs As ADODB.Recor


ADODB - Slow update -
Greeting, I have 2 adodb.connections, and 1 recordset for each of the connections. Both recordsets open the same ms-access table. while I update changes to one recordset and requery on the other recordset, the changes is not reflected on that other recordset immediately. Only aft


Update.exe issue - using 100% CPU -
hello, while working, my PC started to slow down (like opening a file, or a folder etc got slow down) which was't the case before. the last time it happened, i thought that TClock.exe, a spurious application installed maybe after i clicked a link which i should not have, installed t


Update / Set in Database.. -
if I have a statement like: Update [TableName] Set {Field} = 'Y'; in SQL...how do I do that in VB I have the connection setup to oracle and I set rs = New ADODB.Recordset...etc Now what? rs.Update? rs.open? how do I commit? Thanks!


Update record - synax error -
Hi, Can someone tell me why I keep getting synax error on the following update statement in VB6, the table is MS Access, I do the other update statement the same and it always works. Can't figure out why this one not working. Dim rs as ADODB.Recordset Dim Sqlstring as string


can u see what is wrong with this simple update record code -
'* Open a new connection Set conn2 = New ADODB.Connection Set rs2 = New ADODB.Recordset conn2.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\atm.mdb;" & _ "Persist Security Info=False" '* update balance information for user rs2.Edit "UPD


Udate / Add a ADODB recordset -
Dear Vb users, Trying to update a table with the help of a .mdw file, we are using the next code: Dim Arst As ADODB.Recordset Dim oConn As ADODB.Connection Set oConn = New ADODB.Connection oConn.Open "Driver={Microsoft Access Driver (*.mdb)}; Dbq=D:\MyDb.mdb; SystemDB=D


VB .NET extreemly slow at everything compared to VB6 -
hi all, i installed VB .NET lastnight... and tried to convert my VB6 app.. got forty nine errors..which i was crunching through... after that... it just didint want to run... am using ADO/Access connection.. anyway.... the main thing is that its damn slow... very slow to compi


can anyone see an error in this rs.update code -
'* Open a new connection Set conn2 = New ADODB.Connection Set rs2 = New ADODB.Recordset conn2.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\atm.mdb;" & _ "Persist Security Info=False" '* update balance information for user rs2.Open "UPD


Why so slow -
hi,anyone, I have tried to import data from excel file to access. It worked, But the thing is the processing is too too too too too slow, anyone has an better idea to import or reduce the time? My code is similar as following; i=1 For i =1 to 500 rs.addnew For j = 0 to 16


Slow Slow Slow -
I don't know what's causing this extremly slow speed but it takes about 15 seconds to load page (any page) - I am on T1 connection and rest of internet is just fine.


works but slow why -
i have this working on form load but very very slow any ideas there is only three Plants DB Set cnnCon = New ADODB.Connection cnnCon.ConnectionString = _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & p & &quo


I have the problem!! -
Hi Guys! Could any one tell me why ? I am using the Visual Basic to conect to Sql so I have the table that incluce over 70,000 Records so every time when i addnew 1 record it take so long time ! so it's do very slow ! please show me why ? this is my code : Set cn = New ADODB.C


ADO update confused! -
How can I just move thought a recordset and update records which meet my criteria, it updates the whole file. This is what I am doing. Dim cn1 As ADODB.Connection Dim rs1 As ADODB.Recordset Set cn1 = New ADODB.Connection cn1.ConnectionString = "Provider=MSDASQL.1;


PC too Fast! -
Hi all, I have a simple/short customer database and use ADO (tada!) to update any fieldchanges with adodb.recordset.update in a seperate form. BUT when returning to the (reloaded) listview containing all of the customers, the changes made don't apply YET. it would almost seem my


ADO update -
Hi, I'm using VB6. I used the following code to connect to a foxpro dbf using ADO. I've added a new column "Status" to it using SQL, and the initial value of the whole column is .NULL. . I tried to update this column row by row but I failed. It turns out that I get an erro


Easy & best code for Save and Update buttons! -
Dear Friends, Could you please let me know what is the easy & best way to write code for Save & Update buttons? I am using ADODB CONNECTION. Using the following connection: Public db As New ADODB.Connection Public rs As New ADODB.Recordset Please help.


~adodb procedure execute by COmmand object' -
1) I want to know how can i execute a stored procedure through VB by adodb.command the stored procedure is in oracle database stored Procedure CREATE OR REPLACE PROCEDURE sumprofit_nare(cid varchar2,mm date default '01-FEB-05')as begin update sum_profit_nare set xyz=-99 where M


ADODB Recordset Update -
Hi: I have the following piece of code which works well under SQL Server 6.5. But it gives a "Cursor is Read Only" error at the Update statement under SQL Server 7.0. Set rsheader = New ADODB.Recordset rsheader.Open strSQL, cnnODBC, adOpenDynamic, adLockOptimistic Do Wh


recordsets in datagridview -
I am using VB.NET 2005, I have a datagridview that I want the user to be able to update with an ADO recordset .I could do this in Vb6 with datagrids, by setting the datasource, but not able to in VB NET. I see on the forums that it is recommended to use ADO.NET. But I really don't want


Updating records with ADO -
How can I update a record in a FoxPro table using ADO? So that all other users in the network can see latest changes? Is there a way to find out if a record been changed (after loading the recordset) before issue an "Update"? This is my coding to connect to this dbf


Please help.. Update inside access 2003 -
NOW HERE IS MY CODE Code: Private Sub btnUpdate_Click() Dim conn As ADODB.Connection Dim cmd As ADODB.Command conn = New ADODB.Connection conn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\Program Files\HILTI\myTSPsystem v2.2\SMRPSource.mdb;User Id=admin;Password


SQL Server 2000 and XML recordsets -
Hello ! I want to save locally a recordset as xml , make changes locally to the recordset and then connect again with the database and update the database from the xml file. i do something like this dim cn as adodb.connection set cn=.... ' makes the connection dim rs as adodb.


Record updates using ADO -
How can I update a record in a FoxPro table using ADO? So that all other users in the network can see latest changes? Is there a way to find out if a record been changed (after loading the recordset) before issue an "Update"? This is my coding to connect to this dbf


I hate ADO .... Why there are always problems with .AddNew and .Update -
Hi, I write a program in which I just want to .AddNew one record and then .Update the record. After it I want to edit the record and .Update again. I get always the horror message: Run-time error '-2147217864 (800e38)': Row cannot be located for updating. Some values may hav


empty recordset(getting 3021 error) -
Hi i'm trying to update empty recordset by using another recordset . but i'm getting run time error no.3021. it says BOF and EOF is true. Current record has been deleted. its not allowing me to add new record by ado addnew method. I'm able to update one record each time


runtime error 80040e21 -
I'm using VB6, and trying to update a table (postgresql). It is all happening on my home pc with IIS running too. I can download the table to a datagrid, bit I can't type any text i a textbox and update it whith out the error occuring. Here is the code and some remarks afterwards:


One ADO update, then BOOM! -
I have an ADODB.recordset that I am updating from text boxes. When I loop through the textbox collection, I was updating on every loop - set value, update. What I found was it took the first value; after that assigning values was impossible due to the 'unspecified error'. So I p


Connecting to oracle via ODBS & ADO - Why so slow -
Please help I'm connecting to an oracle database via ODBC and ADO. I'm populating a DB Grid using a query based on the boundtext of a datalist. The datalist's recordsource is an Adodc data control. This works fine but the problem is it is so slow. I'm only using a test data


Hai everyone -
i have made a project in vb using the adodc control and i find that it works quite slow. now i have shifted to adodb and i want to make my project's performance to be just Zooooooooooooooooooom. so i have a lot many question over that. firstly i would like to know if i should


--> Adodb Hangs the PC -
I m using adodb command object to call a stored procedure the problem is it donot have any error but it hangs the program and i have press alt ctl del to stop the program the program is Private Sub Command1_Click() Dim cmd As ADODB.Command Set cmd = New ADODB.Command


Large Performance problem!! -
Hello! I have a client application where the clients puts and gets information from an regular Access 2000 DB on the network. My problem is that it goes terribly slow!!! When I develop at home it works great and if I run a client on the server at the company it also works gre


PIV HP Santrino works slow than PI -
Hi Friends, I am facing a problem which is very crucial , some time ago i developed project in VB and Access, due to heavy transaction all workstations become slow down , after this situation i decided to convert database into sql server 2000, when i converted into sql sever the PI an


ADO problem during update!!! -
i'm really confused! whenever i use this code: dim rs, rs1 as adodb.recordset set rs = new adodb.recordset set rs1 = new adodb.recordset rs.open "SELECT ....", cn while not rs.eof rs1.open "SELECT...", cn while not rs1.eof .


Cannot update record -
I am relatively new to programming and am writing a small program to enter, select, display and delete information into a database using VB6 and MYSQL. In the main screen i have managed to update all records with one single exception which returns a runtime error '3021'. I am aware the


Explanation needed (on open and close recordset) -
is opening and closing the ADODB.recordset and ADODB.connection for every action(a button click that trigger manipulation to the database) is advisable? i mean everytime when you want to manipulate or relate to the database , everytime you gotta set up the connection and rec


Declare new ADO recordset - SLOW -
I've got a tough problem. I've got two machines for development.. A long time ago, they both worked great (I'm using VB6 & connecting to a DB2 database using ADO). ABout a month ago, my primary machine got really slow when I signed on to my application. No big deal, I just