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

Setting the timeout

 
   Database Help (Home) -> Visual Basic -> DAO RSS
Next:  vbajet.dll can't initialize  
Author Message
Utf-8BQ2xheQ

External


Since: Jan 26, 2004
Posts: 1



(Msg. 1) Posted: Mon Jan 26, 2004 11:56 am
Post subject: Setting the timeout
Archived from groups: microsoft>public>vb>database>dao (more info?)

Hello!

One of our programs writes to an access database. It does this very quickly, and there are a lot of inserts into one table. Recently I was asked to write some code to cache failed inserts. Once inserts started happening properly again, the cache would also be written. But there is a problem:

I need to be able to set the timeout for fails in DAO. Right now I believe DAO, through jet, retries writing to a database 3 times, and tries for 5 seconds apiece. Thats a max of 15 seconds to know that it has actually failed, which is way too long. 2 seconds is way to long for what we need. Is there any way to make it so that it tries once, for a maximum of one second, and then fails?

If anyone knows how to do this could they let me know? I'd appreciate it immensly! Thanks and have a great day!

 >> Stay informed about: Setting the timeout 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
problem setting "RecordSource" in Office Access 2007 ... - I have a form in Office Access 2007, the "RecordSource" property of which I;m trying to set. But first, I some background: have a push button control at the top of each column in my "overview" form that, when pressed, is supposed to ...

DAO 3.6 record locking - Hi, Is it possible to programmatically lock a single record in a VB application using DAO 3.6? I would like to lock users' records when they log on to the app. Later I can check if a user's record is locked to see if they are logged in or not. (I....

Fixes for VB4 or DAO 3.0 - I've got VB4 (32-bit) and it seems to use DAO 3.0. Is there a service pack for either of these that I can use? I'm having issues with DAO and > 2GB of RAM on the machine, and don't want to have to move to a newer version of VB if I can help it, just t...

Jet error - I've just started getting this error message on a seemingly random basis. 'The Microsoft Jet database engine does not recognize 'CID' as a valid field name or expression.' CID is a text field, and it is a valid column name. The line of code that..

DAO reference / Access 2007 - while using an Access 2007 .accdb file I can access the dao. object very easily. the following code in VBA works well : Function getrecordcount(strTableName As String) As Long Dim dbCurrent As DAO.Database Set db = CurrentDb Dim rstRecords A...
   Database Help (Home) -> Visual Basic -> DAO 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 ]