Increasing Timeouts With ADO

Oct 25, 2007

I have a program that I’m attempting to get counts using ADO. The code is below.


Global Const ConnString = "ODBC;UID=user;PWD=passwd;DSN=ORA"

Dim OraD As ADODB.Connection
Dim rsPreSample As ADODB.Recordset

Set OraD = CreateObject("ADODB.Connection")
OraD.CommandTimeout = 0
OraD.Open ConnString

sql = "select count (recip) from recipfile where recip >= ‘111111111’

Set rsPreSample = New ADODB.Recordset
rsPreSample.Open sql, ConnString


ADO has a default timeout of 30 seconds. I want to set it to 180 seconds, but the timeout keeps getting ignored. Can someone help me get a new timeout to execute?

View Replies


ADVERTISEMENT

Database Size Increasing Too Much

Aug 22, 2006

Hi,

I have created two databases to try and speed up some data manipulation. One database is acting a a 'sniffer' and runs make table, delete, append and normal view queries. the append and make table queries will either write to the other database (the receiving database) or to itself. I have therefore managed to reduce a run time for these queries from 10 minutes for all queries, to less than 1 minute (as previously all in one database using forms).

The problem is these databses contain only about 10 tables to which I am adding data (non of them contain more than 5000 records at the moment) and I also have approx 50 ODBC linked tables (about 30 MB worth so I can retrieve data i want to write to the tables).

The databse has run through my 10 queries about 50 times (each time pasting new info to my receiving tables - still no more than 5000 records) however both database have increaed from a few MB to over 900MB - Is there any way I can stop this from happening as this seems to be a rediculous increase in size - i am also having huge problems compacting the databases.


thanks

View 1 Replies View Related

Increasing Auto Number Value

Jun 4, 2007

I'm making an access database and I'm using the auto number data type for the ID field. But is there a way of increasing the value of the auto number without adding and deleing records over and over again? Basically the database is replacing an excel document that is currently being used. There are already over 5000 entries in the excel document and the access database needs to carry on from the last record in the excel form. Importing the excel data isn't possible, so how would I increase the auto number value?


Thanks

View 2 Replies View Related

Autofill Datatable Columns With Increasing Numbers

Nov 27, 2006

How to autofill datatable columns with increasing numbers - like the way in Excel? :confused:

Given a datatable with 2 columns : ID & Data.

(a) How to fill the column "Data" with consecutive numbers - 1000, 1001, 1002 ...?
(b) How to fill a specified range of continuous records - eg. records ID100, ID101, ID102 ... ID300 - with (a)?

Many many thanks for any help and discussion!

View 2 Replies View Related

Tables :: Why Auto-number Is Not Incrementally Increasing

Jul 20, 2014

Using Access 2007..I have a table where the RecordID is an autonumber, and PK.To set this table up I have a load routine, (becuase I have done this multiple times for testing and further deveopment and I compact and repair the DB prior to loading) - the 690 records are correct numerically and autonumbered.This table has transactional data where existing records are updated and new records are appended.

I found the autonumber was not incrementally increasing - so no reseed the auto number (using ALTER TABLE 3IWSPLans ALTER COLUMN RecordID COUNTER (1000,1)) prior to starting the transactions.

New transactions will append correctly, up untill I amend a existing record (using a delete and append query via a staging table) - then the autonumber tries to reuse a number already in the table and because its not unique it errors.why the auto-number is not incrementally increasing correctly

View 7 Replies View Related

Access Stop From Increasing Size Of A Key Field

Jul 24, 2013

Access stops me from increasing the size of a key field

Table tTrades
. Key field: idTrade: auto-number
. Field: Code: Text 10 characters

Table tData
. Key field: Code: Text 10 characters

I get an error message when I try to change either of these Code fields from size 10 to 16 characters

Error message - you cannot change the data type of field size. It is part of one or more relationships. Te change the data type of this field, first delete its relationships in the relationships window.

I deleted all relationships in the relationships window. But I still get the same error message.

If I click on relationship window > "All realtionships", Access reproduces all my relationships in the relationship window. Somehow it knows them. I deleted them all again and saved. But I still get the same error message.

I have a form ftTrades which generates automatically when I click on table tTrade and create a form.

I deleted this form ftTrades. But I still get the same error message.

How I can increase the size of this field.

View 3 Replies View Related

General :: Increasing File Sizes In Access Database?

May 1, 2013

I have an Access Database of around 8MB. However, after a day's use, this file size increases to around 110MB. If I run a Compact and Repair, the file returns to it's usual size. The first time I noticed this, the file had reached a size of 2GB which is a bit alarming. The file does get used but only appending around 50 records a day and making some amendments. What could be causing this increase?

View 3 Replies View Related

Database Heavily Increasing In Size Over Short Space Of Time

Dec 5, 2007

Hi all

I have a database I built for my employers that is accessed by up to as many as 50 users at one time. It is a relational database. I did a compact and repair this morning which changed the BE from 215MB to 45MB. I went to lunch and came back and the database is now 58MB. Does anyone have any ideas as to why it has increased by 13MB within an hour? There is no way this is caused by geniune data records.

Thanks

Gareth :eek:

View 8 Replies View Related

Queries :: Auto Assign Increasing Number Based On Multiple Factors

Jun 11, 2015

I have written a check writer program for the company I work at. I have a table for Venders, and a separate table Invoices set with a 1-many relationship. When checks are printed it consolidates all the unpaid invoices for each vender to print a single check and mark it as paid with the date.

The checks already have a check number printed on them so what I need is an option that will allow me to enter the first check number when the print starts and Access will put that number in a field on the invoices page for each invoice associated with the first vender printed, then would increase the number by one and put that number in the invoices associated with the next vender printed.

View 5 Replies View Related

Auto Increasing A Number, Depending On Maximum Number When Condition Is Met

Sep 18, 2006

Hi,

I'm trying to get the maximum number in a table field to increase it by one depending on the member that is selected in a drop down in a field.

I have three tables: members, programs and times. Each member can have N programs and each program can be broadcast N times.

Each member has a three digit code, like XXX. Each program has the three digit code of the member + three numbers that are supposed to auto increment. That is, the first program of member X with the member code XXX is called XXX001.

What I'm trying to do is that when a new program is filled in and I select the member, then the program code should update automatically, adding one to the latest program by that member.

That is, if the last program by member X that was inserted in the database is XXX010, then if a new program is inserted it should automatically be XXX011, even though programs by other members have been added in between.

This is the code I use now, for the AfterUpdate when selecting the member in a dropdown in the form. But although I've played around a bit, I just get error messages...

Private Sub medlemsruta_AfterUpdate()
Dim medlemskod
medlemskod = Me![medlemsruta].Column(2)

Dim strMax As String

strMax = DMax("programs_kod", "table_programs", "Left$(programs_kod, 3) = medlemskod")
Me!program_kod = Left$(strMax, 3) & Format$(Val(Right$(strMax, 3)) + 1, "000")
End Sub

Medlemsruta is a dropdown where one selects the member from the members table, where the three digit code is in the third column (Column(2)).

I'm trying to use DMax to get the maximum number for the particular member and after that adding 1 to that for the new program code.

Grateful for any advice! Thanks!

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved