I checked for all the components and nothing appear to be missing. I tried uninstall and reinstall couple of times w/ eraser97, and still it gave me the same problems. I'm sure to install all the necessary SR1, SR2a, and SR2b.
Here is the sample code that causes problems. I doubt it's the coding because it works at home just fine w/ the same exact settings. For some reason, when I try to run it at work, it gave me that error message.
Private Sub cmdRefreshData_Click()
Dim strSQL As String
On Error GoTo Handle_Error
Compare_Names
Me.Refresh
Exit_Handle_Error:
Exit Sub
Handle_Error:
MsgBox Err.Description
Resume Exit_Handle_Error
End Sub
Function Compare_Names()
Dim dbs As Database
Dim EmployeeName As Recordset
Dim TmpQueryResult As Recordset
Dim TLName, TFName, TMI As String
Dim start_time
Set dbs = CurrentDb
Set EmployeeName = dbs.OpenRecordset("EmployeeName"

Set TmpQueryResult = dbs.OpenRecordset("TmpQueryResult"
ProgBar.Min = 0
ProgBar.Max = TmpQueryResult.RecordCount
ProgBar.Value = 0
'start_time = Time
Do While Not TmpQueryResult.EOF
'TmpQueryResult.MoveFirst
With TmpQueryResult
TLName = TmpQueryResult!EmpNameL
TFName = TmpQueryResult!EmpNameFI
TMI = TmpQueryResult!EmpNameMI
EmployeeName.MoveFirst
ProgBar.Value = ProgBar.Value + 1
Do While Not EmployeeName.EOF
' EmployeeName.MoveFirst
With EmployeeName
If Trim(Left(EmployeeName!LastName, 9) = Trim(Left(TLName, 9)) And _
Left(EmployeeName!FirstName, 1) = Left(TFName, 1) And _
Left(EmployeeName!MI, 1) = Left(TMI, 1)) Then
TmpQueryResult.Edit
TmpQueryResult!EmpNameL = UCase(EmployeeName!LastName)
TmpQueryResult!EmpNameFI = UCase(EmployeeName!FirstName)
TmpQueryResult!EmpNameMI = EmployeeName!MI
TmpQueryResult.Update
Exit Do
Else
EmployeeName.MoveNext
End If
End With
Loop
End With
TmpQueryResult.MoveNext
Loop
TmpQueryResult.Close
EmployeeName.Close
Set dbs = Nothing
End Function