Expand Comments Field

access2010

Registered User.
Local time
Yesterday, 16:30
Joined
Dec 26, 2009
Messages
1,115
Hello we are using MS Access 2003 and would like to expand our comments field without using

Shift + F2

Could I please receive the code on how to accomplish this

Thank you

Wendy
 

Attachments

perhaps something like

Code:
Private Sub myComments_GotFocus()
    myComments.height=myComments.height*4
End Sub

Private Sub myComments_LostFocus()
  myComments.height=myComments.height/4
End Sub

change the name of myComments to the name of your comments control
 
Or simply

Code:
Private Sub  myComments_GotFocus()
  DoCmd.RunCommand acCmdZoomBox
End Sub

But I like CJ's approach in that you can adjust the size to suit your needs by changing the factor of 4 to something else!

Linq ;0)>
 

Users who are viewing this thread

Back
Top Bottom