Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / November 2005

Tip: Looking for answers? Try searching our database.

SelText Not Recognized - Help please

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
default105 - 23 Nov 2005 23:03 GMT
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.
Douglas J. Steele - 23 Nov 2005 23:18 GMT
You've forgot to include the name of the textbox. Me refers to the form: you
need something like:

Me.Text1.SelText = Chr(13)

It may also be necessary to ensure that focus is on the textbox:

Me.Text1.SetFocus

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

>I am trying to use the following code in a textbox
>
[quoted text clipped - 19 lines]
>
> Thanks.
default105 - 24 Nov 2005 00:31 GMT
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.

> You've forgot to include the name of the textbox. Me refers to the form: you
> need something like:
[quoted text clipped - 4 lines]
>
> Me.Text1.SetFocus
Douglas J Steele - 24 Nov 2005 13:30 GMT
Did you also use SetFocus, as I suggested?

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Tried that, but the SelText is not  available
> All that is available is SelHeight, SelLeft, SelTop, SelWidth
[quoted text clipped - 9 lines]
> >
> > Me.Text1.SetFocus
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.