Q
quickemr_groups
Hi all,
I am opening a database and simpy trying to alter the size of a text
column. The database I am testing with has about 160,000 records in
it. This code has worked successfully on other databases, but with
less records.
I open it like this:
Set cnData = New adodb.Connection
cnData.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
DataDBLocation & ";Jet OLEDBatabase"
And alter the table like this:
cnData.Execute "alter table MeasurementsT alter column Measurement2
char(250)"
When working with the 160,000 record table, I get the error message:
File sharing lock count exceeded. Increase MaxLocksPerFile registry
Now, I can certainly edit my own registry and increase this value, but
it would be very difficult and time consuming for me to do this on all
of my clients' computers across the country.
Is there some setting in my code that I can set so that they do not
get this error?
I'm using an Access 2002 database by the way.
Thanks in advance,
David
I am opening a database and simpy trying to alter the size of a text
column. The database I am testing with has about 160,000 records in
it. This code has worked successfully on other databases, but with
less records.
I open it like this:
Set cnData = New adodb.Connection
cnData.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
DataDBLocation & ";Jet OLEDBatabase"
And alter the table like this:
cnData.Execute "alter table MeasurementsT alter column Measurement2
char(250)"
When working with the 160,000 record table, I get the error message:
File sharing lock count exceeded. Increase MaxLocksPerFile registry
Now, I can certainly edit my own registry and increase this value, but
it would be very difficult and time consuming for me to do this on all
of my clients' computers across the country.
Is there some setting in my code that I can set so that they do not
get this error?
I'm using an Access 2002 database by the way.
Thanks in advance,
David