I have a machine that is running windows XP with Office 2002 EXCEPT Access is version 97. a DB which opens fine on a machine running windows/95 and Access97, generates a runtime error upon opening a report. The error is as follows: runtime error -2147024770(8007007e) Method. ‘CurrentDb’ of object ‘_Application’
the code on this report is as follows:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim db As DAO.Database
Dim rst As Recordset
Dim strSQL As String
Dim strSpeciality As String
Set db = CurrentDb
the code stops right there and generates the error. There seem to be no missing libraries but after some research, i cannot locate any data about this runtime error. Any assistance is appreciated.