methods aren't being listed.

  • Thread starter Thread starter maura
  • Start date Start date
M

maura

I want to setfocus on the customerid field and when I put
the period in all I get for choices is value. I tried
going up under the tools, then references and Microsoft
DOA 3.6 Object Library is checked off... isn't this what's
going to give me my list of methods?

Please advise, thanks Maura

__________________________________________

Private Sub cmdAddRecord_Click()
On Error GoTo Err_cmdAddRecord_Click


DoCmd.GoToRecord , , acNewRec

customerid. (can't bring up setfocus)

Exit_cmdAddRecord_Click:
Exit Sub

Err_cmdAddRecord_Click:
MsgBox Err.Description
Resume Exit_cmdAddRecord_Click
 
Hi,
If you type Me. do you get customerid as a choice?
Are you sure this is a control on your form?

The Access library is what gives you the SetFocus method, not DAO.
 
Hi Dan,

Okay, if I type Me. I get a list of the methods... so I
know they are there, but it is not listing the customerid
as a choice what am I missing? Do I need to set the
customerid as a control... and how do I do that.

Thank you, M.
-----Original Message-----
Hi,
If you type Me. do you get customerid as a choice?
Are you sure this is a control on your form?

The Access library is what gives you the SetFocus method, not DAO.

--
HTH
Dan Artuso, Access MVP


"maura" <[email protected]> wrote in
message news:[email protected]...
 
Hi,
I'm not clear on your question. You can only set focus to controls,not fields.
When you type Me. all controls on your form will appear in the intelisense
list. Just pick the one you want to set focus to.
 
Back
Top