You could try:
Dim acIdiot As Long
acIdiot = acTable
DoCmd.SelectObject acIdiot, "MLH"
or I suppose you could just examine the intellisense prompt as you type
DoCmd.SelectObject; it will show that a numerical object type is the
first required parameter for SelecrObject. Sorry I forgot that utilites
based on "intelli" or "sense" have removed from your computer.
or I suppose you could have looked up SelectObject in the help file.
Here's what Access 2003 says about it:
"The SelectObject method carries out the SelectObject action in Visual
Basic.
expression.SelectObject(ObjectType, ObjectName, InDatabaseWindow)
expression Required. An expression that returns one of the objects
in the Applies To list.
ObjectType Required AcObjectType.
AcObjectType can be one of these AcObjectType constants.
acDataAccessPage
acDefault
acDiagram
acForm
acFunction
acMacro
acModule
acQuery
acReport
acServerView
acStoredProcedure
acTable
Note The constant acDefault, which appears in the Auto List Members
list for this argument, is invalid for this argument. You must choose
one of the constants listed above.
ObjectName Optional Variant. A string expression that's the valid
name of an object of the type selected by the objecttype argument.
This is a required argument, unless you specify True (-1) for the
indatabasewindow argument. If you specify True for the
indatabasewindow argument and leave the objectname argument
blank, Microsoft Access selects the tab in the Database window that
corresponds to the database object you specify in the objecttype
argument.
InDatabaseWindow Optional Variant. Use True to select the object in
the Database window. Use False (0) to select an object that's already
open. If you leave this argument blank, the default (False) is
assumed."
Oh, I forgot, you have no help file, do you?
Well, hope this helps unless you're in one of your:
"I don't know. I got tired of screwing with it." modes in which case
nothing will help.
Oh, I forgot, in your case nothing will help.