Hi, Rey.
Open the VB Editor and select the Tools menu -> References... to open the
References dialog window. Browse to the Microsoft DAO 3.6 Object Library and
check the box, then close the dialog window.
"Set MyTable = mydb.OpenTable("MthAvgTbl")" doesn't work.
Sorry. I didn't look very closely at your other code. OpenTable( ) is a
method of the DoCmd class, not a (presumably) database object. What exactly
are you trying to do? Open up a table for viewing or programmatically run
through the records? If you want to run through the records, you'll need to
open a Recordset instead.
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
Beware to those who use munged addresses: known newsgroup E-mail harvesters
for spammers are
[email protected] and
[email protected]
- - -
When you see correct answers to your question posted in Microsoft's Online
Community, please sign in to the Community and mark these posts as "Answers,"
so that all may benefit by filtering on "Answered questions" and quickly
finding the right answers to similar questions. Remember that questions
answered the quickest are often from those who have a history of rewarding
the contributors who have taken the time to answer questions correctly.