Compile Error: Method or data member not found.

A

Arturo

I posted this before and never got an answer. Here is more information.

I am using Access 2000. I have a table behind a form. Three of the fields
are memo fields. They are Services, Terms, and Vocational. I use the Got
Focus feature to have the cursor go to the first posiiton in the cell. This
works great.

Here is the procedure I use for each field.

Private Sub Services_GotFocus()
Services.SelStart = 0
End Sub

The problem is when I try to compile the database. I get the compile error
"Method or data member not found" and ".SelStart =" is highlighted.

Does anybody know why?

Thank you.
 
S

Stefan Hoffmann

hi Arturo,
I am using Access 2000. I have a table behind a form. Three of the fields
are memo fields.
I assume that you use a TextBox for each field to display the data.
Private Sub Services_GotFocus()
Services.SelStart = 0
End Sub
Rename your controls. Services -> txtServices. This may solve it.


mfG
--> stefan <--
 
C

Cheese_whiz

HI Arturo,

Try putting "Me." in front of the references:

Me.Services.SelStart

CW
 

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

Top