Hello,
Here is the code I am trying to get to work.
Function Mas90RecordCount()
Dim MyDB As Database
Dim MyRS As Recordset
Set MyDB = CurrentDb()
Set MyRS = MyDB.OpenRecordset("SO_03SOHistoryHeader", dbOpenDynaset)
MyRS.MoveLast
Mas90RecordCount = MyRS.RecordCount
MyRS.Close
End Function
When I run this routine, I get a error # 13 on line
Set MyRS = MyDB.OpenRecordset("SO_03SOHistoryHeader", dbOpenDynaset)
What do I need to accomplish to correct this error.
Thanks,
Scott
Here is the code I am trying to get to work.
Function Mas90RecordCount()
Dim MyDB As Database
Dim MyRS As Recordset
Set MyDB = CurrentDb()
Set MyRS = MyDB.OpenRecordset("SO_03SOHistoryHeader", dbOpenDynaset)
MyRS.MoveLast
Mas90RecordCount = MyRS.RecordCount
MyRS.Close
End Function
When I run this routine, I get a error # 13 on line
Set MyRS = MyDB.OpenRecordset("SO_03SOHistoryHeader", dbOpenDynaset)
What do I need to accomplish to correct this error.
Thanks,
Scott