GotFocus / LostFocus problem

Leo_Polla_Psemata

Registered User.
Local time
Today, 12:28
Joined
Mar 24, 2014
Messages
364
Hi
I have a form , default view is continues.
In the form there is a field "comment"

With the following code, i make field big on GotFocus or small on LostFocus

Code:
Private Sub comment_GotFocus()
        
        comment.Height = 1308
        comment.Width = 3405
        
End Sub

Private Sub comment_LostFocus()

        comment.Height = 348
        comment.Width = 885

End Sub
This works however when i focus on comment field , because form is continues, i see all the field on all records getting big and this is not good looking.
Can i make this code work ONLY in one record ? In the record I am focused ?
 
No, not in a continues form in MS-Access.
 
What you can do is put some code in the Detail OnPaint event. This is a way of controlling some aspects of an individual record even when the form Continuous Forms. For example, you could set the background colour or colour of the border.
 

Users who are viewing this thread

Back
Top Bottom