Hi Guys,
I need help with VBA code for this one please.
I have a button above a memo field. on click event of this button I need the cursor to go the the start of the memo field and hit enter so that the user can append comments at the start of the field
The code i have come up with so far is below:
The above code is supposed to start at position 0 of the comment box, hit enter and display a date so the user can start typing a note.Code:me.comments.setfocus me.comments.selstart =0 me.comments.value = me.comments .value & vbnewline & left(Date,5) & " - "
Instead the code finds the last word in the comments box, hits enter and displays date at the end.
Can someone please help with the code to display the date at position 0?
Hope this makes sense.
Thanks
V