I've got a routine that imports and performs some transformations on a 481 MB text file.
The routine crashes on this code block for one workstation (but works fine on our other workstations):
' All of the eleven-digit telephone numbers encountered end in 0. If we get rid of the ending 0,
' we may end up with a valid telephone number.
SQLString = "UPDATE " & sTableName & _
" SET [ServAddrPhone] = Int([ServAddrPhone]/10) WHERE [ServAddrPhone] >9999999999 ; "
RoboCallDB.Execute SQLString, dbFailOnError
[ServAddrPhone] is a double. The code block scans through some 800,000 records looking for telephone numbers greater than 10-digits, and generally finds about 3,000 records eligible for an update.
How can this code be optimized to avoid Error 3035? Thanks!