Hi all,
I am trying to search a table of emailaddresses records (tblMails -
slightly more then 7000)for
the occurance of words which are stored in another table (tblFilterwords-
aprox 3000 records) using DAO.
The program works as follows:
First I define a recordset called rstMails
Then I make a loop in VBA while looking for the occurence of "<" in the
field emailaddress. Using this I am able to extract the "pure" emailaddress,
without any names or other information. The remainder of the information is
being written to another field.
After this has been done (about 7000 times) I make another loop and start
looking for the occurance of the filterwords which are stored in the second
table (about 3000 records). So each emailaddress has to be compared with
evey value in the second table. So the total number of comparisions is 7000
x 3000 = about 21,000,000.
This all worked fine when the first table had only about 6000 records. When
adding another 1200 records to the first table, all of the sudden Access
gave me the following warning (translated in English 'cause I have the Dutch
version): "The number of locks for shared file using has been exceeded.
Increase MaxLocksPerFile in register.
So, that's what I did, I increased the value from the default (9500) to
200000. No result at all, it keeps on giving me the same message. I don't
really understand what this MaxLocksPerFile is.
Can anybody please help me with this problem?
Thanks in advance
I am trying to search a table of emailaddresses records (tblMails -
slightly more then 7000)for
the occurance of words which are stored in another table (tblFilterwords-
aprox 3000 records) using DAO.
The program works as follows:
First I define a recordset called rstMails
Then I make a loop in VBA while looking for the occurence of "<" in the
field emailaddress. Using this I am able to extract the "pure" emailaddress,
without any names or other information. The remainder of the information is
being written to another field.
After this has been done (about 7000 times) I make another loop and start
looking for the occurance of the filterwords which are stored in the second
table (about 3000 records). So each emailaddress has to be compared with
evey value in the second table. So the total number of comparisions is 7000
x 3000 = about 21,000,000.
This all worked fine when the first table had only about 6000 records. When
adding another 1200 records to the first table, all of the sudden Access
gave me the following warning (translated in English 'cause I have the Dutch
version): "The number of locks for shared file using has been exceeded.
Increase MaxLocksPerFile in register.
So, that's what I did, I increased the value from the default (9500) to
200000. No result at all, it keeps on giving me the same message. I don't
really understand what this MaxLocksPerFile is.
Can anybody please help me with this problem?
Thanks in advance
Comment