M
mcescher
Hi All,
I'm trying to add a PK to a newly imported text file.
DoCmd.TransferText acImportFixed, strSpec, strFile, strPath & strFile
& ".txt", False
strSql = "ALTER TABLE " & strFile & " ADD ID COUNTER CONSTRAINT
PrimaryKey PRIMARY KEY"
CurrentDb.Execute strSql, dbFailOnError
When I run this code, it returns "System Resources Exceeded". If I
create a DD query with that SQL statement, I get this error.
"File sharing lock count exceeded. Increase MaxLocksPerFile registry
entry."
HKLM>Software>Microsoft>Jet>4.0>Engines>Jet 4.0>MaxLocksPerFile is set
to 9500
Table has just over 360k records.
Is there a way to force Access to go forward anyway? The user I'm
creating this database for doesn't have admin rights, and wouldn't be
able to change the registry setting.
HELP!!!
Chris M.
I'm trying to add a PK to a newly imported text file.
DoCmd.TransferText acImportFixed, strSpec, strFile, strPath & strFile
& ".txt", False
strSql = "ALTER TABLE " & strFile & " ADD ID COUNTER CONSTRAINT
PrimaryKey PRIMARY KEY"
CurrentDb.Execute strSql, dbFailOnError
When I run this code, it returns "System Resources Exceeded". If I
create a DD query with that SQL statement, I get this error.
"File sharing lock count exceeded. Increase MaxLocksPerFile registry
entry."
HKLM>Software>Microsoft>Jet>4.0>Engines>Jet 4.0>MaxLocksPerFile is set
to 9500
Table has just over 360k records.
Is there a way to force Access to go forward anyway? The user I'm
creating this database for doesn't have admin rights, and wouldn't be
able to change the registry setting.
HELP!!!
Chris M.