Split database and getting 3219 error

  • Thread starter johnvielee via AccessMonster.com
  • Start date
J

johnvielee via AccessMonster.com

I moved my tables to a seperate database and linked the tables. Now I am
getting error 3219 but don't understand why. I have a function the Set
RST = db.OpenRecordset(bidTbl, dbOpenTable)
is getting error

thanks,
john


Function IsBidSum(ByVal pid As Long, ByVal wsv As Long) As Variant
Dim db As Database
Dim bidTbl As String
Dim RST As Recordset

Set db = CurrentDb()
bidTbl = "tblBidSummary"

IsBidSum = False

Set RST = db.OpenRecordset(bidTbl, dbOpenTable)
RST.Index = "PrimaryKey"

Select Case RST.RecordCount
Case 0
GoTo Exit_IsBidSum
Case Is > 0
RST.Seek "=", pid, wsv
If RST.NoMatch = False Then
IsBidSum = True
GoTo Exit_IsBidSum
End If

End Select

Exit_IsBidSum:
RST.Close
Set RST = Nothing

End Function
 
N

nickf123 via AccessMonster.com

john,
I moved my tables to a seperate database and linked the tables. Now I am
getting error 3219 but don't understand why. I have a function the Set
RST = db.OpenRecordset(bidTbl, dbOpenTable)
is getting error

Is your table (bidTbl) a linked table? If so, linked tables cannot be opened
with the arg "dbOpenTable".
Replace dbOpenTable with dbOpenDynaset and you should still have the same
functionality.

-Nick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top