methods aren't being listed.

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
 
D

Dan Artuso

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.
 
M

maura

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]...
 
D

Dan Artuso

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Problem clearing listbox 4
DoCmd.OpenForm 2
Search records? 1
More help on DMax+1 7
VB Code 1
Command Button 1
Need error help 4
adding new (blank) record to child/sub-form on main form 5

Top