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

mdb too slow for vb. cannot refresh screen.

 
   Database Help (Home) -> Visual Basic -> ADO RSS
Next:  How to insert a 100000 records in access table wi..  
Author Message
user3479

External


Since: Jan 27, 2005
Posts: 1



(Msg. 1) Posted: Mon Feb 14, 2005 3:40 am
Post subject: mdb too slow for vb. cannot refresh screen.
Archived from groups: microsoft>public>vb>database>ado (more info?)

I fill the Janus Gridex Component with a table. (don't worry problem is not
related with component. I tried listbox also). Then I add a record with
rst.addnew/rst.update methods.

When I call .rebind method to refresh grid, nothing happens. if I refresh it
after 2 seconds, it works. if I put a messagebox that says "new record
added" and gain time, it also works.

But if I refresh grid immediatelly after rst.addnew/rst.update methods, old
recordset comes to screen. same problem also exists in rst.update and
rst.delete methods.

Strange thing is this problem doesn't exists in SQL server. in all form, I
use one adodb.connection and also I tried cn.begintrans / cn.committrans and
wait until cn.state <> adexecuting. it didn't work.

and help please ? thanks.

 >> Stay informed about: mdb too slow for vb. cannot refresh screen. 
Back to top
Login to vote
Wart

External


Since: Jul 28, 2004
Posts: 7



(Msg. 2) Posted: Mon Feb 14, 2005 12:40 pm
Post subject: Re: mdb too slow for vb. cannot refresh screen. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Aykut,
It is a kludge, but a delay tactic like the one you are using is the only
way to get around the slowness of the MDB platform that I know of. As the
MDB gets bigger, the delay will become longer, so I have resorted to closing
and requerying after adding a record(s) when using MDB database
applications.
CF

"Aykut Canturk" <aykut.canturk DeleteThis @karina-mira.com> wrote in message
news:%235gp5kmEFHA.1012@TK2MSFTNGP14.phx.gbl...
 >I fill the Janus Gridex Component with a table. (don't worry problem is not
 >related with component. I tried listbox also). Then I add a record with
 >rst.addnew/rst.update methods.
 >
 > When I call .rebind method to refresh grid, nothing happens. if I refresh
 > it after 2 seconds, it works. if I put a messagebox that says "new record
 > added" and gain time, it also works.
 >
 > But if I refresh grid immediatelly after rst.addnew/rst.update methods,
 > old recordset comes to screen. same problem also exists in rst.update and
 > rst.delete methods.
 >
 > Strange thing is this problem doesn't exists in SQL server. in all form, I
 > use one adodb.connection and also I tried cn.begintrans / cn.committrans
 > and wait until cn.state <> adexecuting. it didn't work.
 >
 > and help please ? thanks.
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: mdb too slow for vb. cannot refresh screen. 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Visual Basic -> ADO All times are: Pacific Time (US & Canada) (change)
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 ]