Limiting memo field in form...

S

strela

Is it possible to limit memo field as textboxes are limited to certain
number of characters?
(I need memo with 660 characters - to fill box on already printed
formulary). Thanks in advance.

Best regards,
Stole.
 
S

Svetlana

I think you could do it like that

Private Sub txtMyMemo_KeyDown(KeyCode As Integer, Shift As Integer)
If Len(Me.txtMyMemo.Text) >= 660 Then
KeyCode = 0
End If
End Sub
 
S

strela

Thank you very much. Works perfectly, I just didn't have a time to check it
till now.

Best regards,
Stole.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top