T tbasha Guest Sep 20, 2000 #1 How can i limit a field size in a form? The field is not attached to any database field. Is there any option i can use ib field properties to do it? I want to know both for numeric and alphanumeric data type fields.
How can i limit a field size in a form? The field is not attached to any database field. Is there any option i can use ib field properties to do it? I want to know both for numeric and alphanumeric data type fields.
Travis Registered User. Local time Today, 10:27 Joined Dec 17, 1999 Messages 1,332 Sep 20, 2000 #2 on the Change Event of the field check its size: for text use Len(me.[FieldName]) for values just set an upper and lower limit and check to see if its within that limit if Len(me.[FieldName])< UpperLimit then 'its too long else 'its just right end if if me.[fieldname]=< UpperLimit and me.[fieldName]=> LowerLimit then 'its ok else 'its not in the range end if
on the Change Event of the field check its size: for text use Len(me.[FieldName]) for values just set an upper and lower limit and check to see if its within that limit if Len(me.[FieldName])< UpperLimit then 'its too long else 'its just right end if if me.[fieldname]=< UpperLimit and me.[fieldName]=> LowerLimit then 'its ok else 'its not in the range end if
R rjohnstone1 Registered User. Local time Today, 18:27 Joined Jun 6, 2000 Messages 17 Sep 20, 2000 #3 go into the properties for the field and select can grow option to no.