> Yes, I did try opening the recordset using dbOpenDynaset with the same result
> (invalid argument).
If you have references to both ADO and DAO you might need...
Dim rs As DAO.Recordset

Signature
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Don W - 05 Nov 2006 01:59 GMT
Rick, thank you for your response!
I still don't know what was happening. Tried the module on my home PC and
it worked. I'm in the office now, and this is the line I used to get this
thing working at the office:
Set rs = CurrentDb.OpenRecordset("SELECT * FROM CardHolder")
(note that the table name was changed from dbo_CardHolder to just
CardHolder, but the table name change had no effect on the issue.)
Here at the office I never could open the recordset using the table name.
Oh well... it works using SQL.
jmorriz - 05 Nov 2006 17:41 GMT
You may try
Dim ds as dao.database
dim rs as dao.recordset
set ds = currentdb
set rs = ds.openrecordset("tablename", dbopendynaset)
Jim
>Rick, thank you for your response!
>
[quoted text clipped - 7 lines]
>Here at the office I never could open the recordset using the table name.
>Oh well... it works using SQL.