I am a new user looking for a simple solution (I don't write code) to limt a
memo field to 1500 characters. Is there a way to do this using the Validation
Rule?
You don't write code? Perhaps you should learn.
A simple solution? Write code! It's no big deal.
In Design view, select the memo field.
Display it's property sheet.
Select the Event tab.
On the Change line write:
[Event Procedure]
Then click on the little button with 3 dots that appears on that line.
When the code window opens, the cursor will be flashing between 2
already existing lines of code.
Between those 2 lines, write:
If Len(Me!MemoName.Text) >1500 then
MsgBox "Only 1500 characters are allowed."
Me!MemoName.Text = Left(Me!MemoName.Text,1500)
End If
Change [MemoName] to whatever the actual name of your form control is.
Save the code.
When the user enters the 1501 character, the message will appear and
the text will be rolled back to 1500 characters.
Now if you wish to use a Validation rule you can.
Set the Validation Rule in the table to:
Len([MemoFieldName])<= 1500
Write a Validation Text message.
The problem is the user will be able to write much more than 1500
characters and won't know until he exits the field at which time the
data will not be saved and he will then have to figure out where, in
the text, the 1500th character is.
Good luck.