Ally
Registered User.
- Local time
- Today, 21:38
- Joined
- Sep 18, 2001
- Messages
- 617
Unfortunately when a user opened an Acc'97 db via a shortcut it automatically went to open it in Acc 2000. She clicked Open as opposed to Convert, not realizing that she shouldn't be using it in 2000.
Now, when attempting to open a report (back in Acc '97) - (which runs a query and also uses some code), we now get the error message:
Automation Error
The code that's highlighted is:
Does anyone know what's going wrong here please? I haven't a clue. I've check the references and they're the same as they were before.
Now, when attempting to open a report (back in Acc '97) - (which runs a query and also uses some code), we now get the error message:
Automation Error
The code that's highlighted is:
Code:
Function getCount(strRs As String)
Dim r As Recordset
Dim db As Database
Set db = CurrentDb
Set r = db.OpenRecordset(strRs)
getCount = r.RecordCount
r.Close
End Function
Does anyone know what's going wrong here please? I haven't a clue. I've check the references and they're the same as they were before.
Last edited: