I have continuous forms displaying records that include fields such as people's names, company names, addresses, etc. My problem is that while a person's name ([Surname] & ", " & [Firstname]) can be up to 62 characters in length within my particular database, displaying a text box wide enough to display the potential maximum leaves little room for information from other fields. I know I can use two rows, etc, but the same problem applies... it becomes very difficult to layout fields when a field length may be 11 characters or 41 characters.
I have began to consider using IIF's within the underlying queries to present field data as either "FieldData" (if the length is no greater than a specified maximum) or "FieldData..." is it exceeds that specified maximum. This means I can use text boxes of more reasonable widths, knowing that should a name be very long I will see something like "VeryLongName..." rather than having the name be cut-off mid-letter as it disappears beyond the right-hand edge of the textbox. The presence of "..." also providing an indicator to the user that all available data is not currently visible.
Of course IIF's are far from efficient, and on a form that may potentially list a few thousand companies, that is not good news.
Does anyone have any ideas or approaches to dealing with this kind of data presentation problem, or any thoughts on my idea?
I have began to consider using IIF's within the underlying queries to present field data as either "FieldData" (if the length is no greater than a specified maximum) or "FieldData..." is it exceeds that specified maximum. This means I can use text boxes of more reasonable widths, knowing that should a name be very long I will see something like "VeryLongName..." rather than having the name be cut-off mid-letter as it disappears beyond the right-hand edge of the textbox. The presence of "..." also providing an indicator to the user that all available data is not currently visible.
Of course IIF's are far from efficient, and on a form that may potentially list a few thousand companies, that is not good news.
Does anyone have any ideas or approaches to dealing with this kind of data presentation problem, or any thoughts on my idea?