SelText Not Recognized - Help please

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to use the following code in a textbox

if asc(key) = 3 then
me.seltext = chr(13)
return true
end if

I get the following when the code is supposed to be executed, it opens VB
*Compile error: Method or data member not found*

When I highlight, right click and choose definition I receive
*Identifier under cursor is not recognized*

When I highlight, right click and choose Object Browser and search for
SelText it says it is a member of Access with 2 classes, Combo Box and
Textbox.
The location of Access is C:\Program Files\Microsoft
Office\OFFICE11\MSACC.OLB, Microsoft Access 11.0 Object Library

When I checked the References the Microsoft Access 11.0 Object Library is
checked. How do I get it to recognize this identifier in this library.

Thanks.
 
Tried that, but the SelText is not available
All that is available is SelHeight, SelLeft, SelTop, SelWidth

I need to get SelText to be a recognizable member.
 
Tried that, but the SelText is not available
All that is available is SelHeight, SelLeft, SelTop, SelWidth

I need to get SelText to be a recognizable member.
 
SelText is ONLY available if the TextBox has the Focus. Do you have the
Focus on the TextBox when the code is executed?
 

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

Back
Top