SelStart problem

ybg1

Registered User.
Local time
Yesterday, 16:07
Joined
Jan 3, 2009
Messages
20
Hi there,
I'm trying to open the form when the cursor sits at the end of the text
that previously was typed, after todays date was inserted on the next line.
It does all that but at first you see only the date, and to be able to see the
previous text you need to scroll with the top arrow otherwise it is invisible
Private Sub Form_Current()
Me.Remarks.SetFocus
Me.Remarks = Me.Remarks & vbNewLine & Date
(Me.Remarks.SelStart = Len(Me. Remarks
End Sub
I've tried: Me.Remarks.SelStart = 0 and I can see the previous text but
of course the cursor sits in the begining of the page
what I can do to have it sits after the inserted date and still see the previous text
thanks
 
Other than having a left parenthesis in the wrong position,the following;
Code:
Me.Remarks.SetFocus
Me.Remarks = Me.Remarks & vbNewLine & Date
Me.Remarks.SelStart = Len(Me.Remarks)
works fine for me :confused: what error are you getting?
 
Thank you for your help
I've solved the problem by using DoCmd.Maximize
 

Users who are viewing this thread

Back
Top Bottom