Set MySet = myDb.OpenRecordset("UnmatchedDocuments", dbOpenTable)
The problem is that this line didn't seem to grab the UnmatchedDocument Table from my database so MySet return a null value. As a result, all the rest of the code is wrong.
Thanks.
Function UpdateUnmatched(WordDoc)
Dim RecordNo As Long
Dim myDb As DAO.Database
Dim MySet As DAO.Recordset
Set myDb = CurrentDb()
Set MySet = myDb.OpenRecordset("UnmatchedDocuments", dbOpenTable)
MySet.Index = "WordDocFile"
MySet.Seek "=", WordDoc.Value
If MySet.NoMatch Then
MySet.AddNew...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.