Compile Error

A

Arturo

I use the following procedure for several fields and it works.

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

However, when I try to compile the database, I ger the error
"Method or data member not found."

Anybody know why?

Thank you.
 
J

Jerry Whittle

I can't find Services in the Object Browser. I do see SelStart under both the
ComboBox and TextBox class of the Access library. Is Services the name of a
combo or text box?
 
A

Arturo

Additional follow-up reply:

Services is a field name in the table behind the form. I have used this on
several fields, especially phone numbers and the like. Services is a memo
field. When it gets the focus, the cursor does go the the first place in the
field. As I said, all the programming works on these fields. It just won't
compile them.
 
Top