473,748 Members | 6,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Maximum *width* of data in a table (Access 2003)

Greetings:

Is there any way to determine the maximum width of all data elements
in a particular column in a table? Sorting a column won't do it, of
course, since it will use a collating sequence based on the content of
the data. I want to know, for example, that the maximum width of a
(non-blank) populated field in a table is, say, 10 (even though the
field itself may be defined as width-255).

Many thanks.

Jun 2 '07 #1
2 2331
On Sat, 02 Jun 2007 21:36:53 -0000, RK********@gmai l.com wrote:
>Greetings:

Is there any way to determine the maximum width of all data elements
in a particular column in a table? Sorting a column won't do it, of
course, since it will use a collating sequence based on the content of
the data. I want to know, for example, that the maximum width of a
(non-blank) populated field in a table is, say, 10 (even though the
field itself may be defined as width-255).

Many thanks.

Make a query of the table showing only the one column in question.
Add a calculated column, say for the length of a persons last name,
lgthLastName:([LastName])
set sort order to Descending

Just a wizard prodder
Chuck
--
Jun 2 '07 #2
On Sat, 02 Jun 2007 21:36:53 -0000, RK********@gmai l.com wrote:
Greetings:

Is there any way to determine the maximum width of all data elements
in a particular column in a table? Sorting a column won't do it, of
course, since it will use a collating sequence based on the content of
the data. I want to know, for example, that the maximum width of a
(non-blank) populated field in a table is, say, 10 (even though the
field itself may be defined as width-255).

Many thanks.
What do you mean by "maximum width"?
The number of characters in the field?
In a query?
Add a new column:
MostChars:Len([FieldName])

Set this column to sort Descending
The record with the most characters will be first.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jun 3 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

179
44422
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
3
11464
by: Emil Dotchevski | last post by:
I have a table that is at 100% width, which contains a <TD> that is 80% of that. In the <TD> I want to put pre-formatted text (the output from a C++ compiler, to be more precise) and I'd like the text to use scroll bars if it does not fit. I can't get this to work, no matter what combination of <PRE>, width, and style I try. Any help greatly appreciated. Thanks, Emil
4
10521
by: abracad | last post by:
Is there a way to force a maximum width for an image, table or table cell? cheers
2
28599
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
6
16124
by: Henro V | last post by:
And if there is one, is there a way to make forms that are wider? For every day on the form (first field) it needs to be followed by 52(!) datefields. I've widened the form as far as I can but I lack space................ Any solutions? TIA Henro
15
12133
by: Lauren Wilson | last post by:
Access 2K dim MyStr as string What is the maximum amount of text or bytes that this variable can store? Does anyone know?
0
5826
by: M. David Johnson | last post by:
I cannot get my OleDbDataAdapter to update my database table from my local dataset table. The Knowledge Base doesn't seem to help - see item 10 below. I have a Microsoft Access 2000 database which indexes computer magazine articles for personal reference. I am developing a Visual Basic.NET program whose sole purpose is to enter new records into the database. No updates to existing entries, no deletions, and no display
4
5088
by: p.numminen | last post by:
Is it possible, with CSS, to determine a certain _maximum_ width for a text, paragraph, division, etc.?
3
8854
by: =?iso-8859-1?q?Jean-S=E9bastien?= | last post by:
hello, is it possible to resize an image with same proportion. having a maximum height and a maximum width. the solution should work on main browsers (do not use max-height and max-width). or should i do it with javascript?
0
8987
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9316
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6793
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4597
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.