Bad argument when opening SQL table for ADD

G

Guest

I'm trying to add a record to a SQL server table. I'm using the following code:

Set recSet3 = New ADODB.Recordset
recSet3.CursorLocation = adUseServer
recSet3.CursorType = adOpenKeyset
recSet3.LockType = adLockOptimistic
recSet3.Open "dbo_t_phone_number", dbConn, , , adCmdTable

where dbConn is:

Dim dbConn As Object
Set dbConn = Application.DBEngine(0)(0)

When I attempt to execute the "recset3.Open" command, I'm getting the
following error and don't know why:

"Arguments are of the wrong type, are out of acceptible range, or are in
conflict with one another"

Any insight on this would be MOST appreciated. Note that I'm running Access
2002, and DO NOT issue an explicit database OPEN command.

Thanks a million!
 

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