B butter30 Registered User. Local time Today, 22:56 Joined Jan 24, 2010 Messages 12 Feb 14, 2010 #1 in access 2007 does anyone know to build an expression for length validation, from the expression builder that states that minimum length of 3 characters is required.
in access 2007 does anyone know to build an expression for length validation, from the expression builder that states that minimum length of 3 characters is required.
V vbaInet AWF VIP Local time Today, 22:56 Joined Jan 22, 2010 Messages 26,374 Feb 14, 2010 #2 This is how I handle it on the Change event of the control (in this instance, a text box): Code: If Len(txtbox1.Text) > 3 Then txtbox1.Text = Mid(txtbox1.Text, 1, 3) txtbox1.SelStart = 3 End If Unless someone has another idea for you.
This is how I handle it on the Change event of the control (in this instance, a text box): Code: If Len(txtbox1.Text) > 3 Then txtbox1.Text = Mid(txtbox1.Text, 1, 3) txtbox1.SelStart = 3 End If Unless someone has another idea for you.
V vbaInet AWF VIP Local time Today, 22:56 Joined Jan 22, 2010 Messages 26,374 Feb 14, 2010 #3 vbaInet said: This is how I handle it on the Change event of the control (in this instance, a text box): Code: If Len(txtbox1.Text) > 3 Then txtbox1.Text = Mid(txtbox1.Text, 1, 3) txtbox1.SelStart = 3 End If Unless someone has another idea for you. Click to expand... Ignore that completely. I thought you meant maximum. Are you referring to tables or forms?
vbaInet said: This is how I handle it on the Change event of the control (in this instance, a text box): Code: If Len(txtbox1.Text) > 3 Then txtbox1.Text = Mid(txtbox1.Text, 1, 3) txtbox1.SelStart = 3 End If Unless someone has another idea for you. Click to expand... Ignore that completely. I thought you meant maximum. Are you referring to tables or forms?
B butter30 Registered User. Local time Today, 22:56 Joined Jan 24, 2010 Messages 12 Feb 14, 2010 #4 i was referring to table although both would be useful
V vbaInet AWF VIP Local time Today, 22:56 Joined Jan 22, 2010 Messages 26,374 Feb 14, 2010 #5 Try this: Len([FieldName]) >= 3