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 / March 2007

Tip: Looking for answers? Try searching our database.

zoom command

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lilbit27 - 22 Mar 2007 19:43 GMT
I am using this DoCmd.RunCommand acCmdZoomBox to open a zoom box on a
textbox. is there a way to prevent the text from being highlighted
when you click on the box.
missinglinq - 22 Mar 2007 20:16 GMT
I'll be most interested to see if anyone has an answer to this; I've been
trying to figure it out for a while now. I finally gave up and "rolled my own!
" It requires placing a large text box (call it ZBox) on your form. Assign it
the same Control Source as the field you want to expand, and make it visible
by double clicking the field you want expanded.

Substitute the actual name of your field to be expanded for YourFieldName.

Private Sub Form_Load()
    'Make the textbox invisible on loading the form    
     ZBox.Visible = False
End Sub

Private Sub YourTextBox_DblClick(Cancel As Integer)
   'When you double click the field, this make the ZBox
       'visible and moves the cursor to the beginning to
       'deselct the text  
       ZBox.Visible = True
       ZBox.SetFocus    
       ZBox.SelStart = 0
End Sub

Private Sub ZBox_DblClick(Cancel As Integer)
       'Double click the ZBox to close it and
       'return to your original field
   Me.YourTextBox.SetFocus
   ZBox.Visible = False
End Sub
 
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.