"Jim Pockmire" <(E-Mail Removed)> wrote in message
news:4ohoe.20956$(E-Mail Removed)
> Thanks again,
>
> My testing has been with a local table which hides/unhides fine.
> However when running the code for a linked table, once again I
> receive a runtime 3001 error "Invalid Argument". Is this behavior
> normal?
I hadn't tried this before, but I'm finding the same thing. My guess is
that, since this attribute is really supposed to be for use by the Jet
database engine, it won't let you set it for an attached table. That's
just a guess, though. If you *must* hide tables using the
dbHiddenObject attribute, instead of Application.SetHiddenObject (or
just naming them with the USys prefix), then I think you're probably
stuck as far as linked tables are concerned. You've been warned about
how dbHiddenObjects may be deleted -- at least in some versions of
Access -- when the database is compacted, right?
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)