During the convert to '03 it was determined that DAO reference was incorrect and needed to be updated to 3.6 which we did.
I have a macro that won't run in '03 but will run under '97
When running the macro, the Error generated is
"Run TIme Error '13' Type mismatch"
Expand|Select|Wrap|Line Numbers
- Function Have_Recs(Table_Name As String)
- ' This function will determine if a table is present and if present
- ' does it contain any records
- ' Returns -1 if records are found
- ' Returns 0 if the table is not present or is present without records
- Dim listset As Recordset
- Open_Data_Database
- Set listset = db.TableDefs()[/b] (this line is highlited in VBA)
- Have_Recs = 0
- Have_Table = 0
- listset.MoveFirst
- While (Not listset.EOF And Have_Table = 0)
- If listset!Name = Table_Name Then
- If (listset!RecordCount > 0) Then
- Have_Recs = -1
- End If
- j = listset!RecordCount
- Have_Table = -1
- End If
- listset.MoveNext
- Wend
- End Function