473,595 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to get rid of white space in table field

Hi,

There are a lot of white space inside each table field after getting Access
DB created with importation from excel file. Then the table and
forms/reports are looking bad.

Is there a way to automatically remove them? Or do we have some way to do
similar thing on excel file first?

Thanks.

Ste
Dec 23 '06 #1
3 9617
On Sat, 23 Dec 2006 03:09:12 GMT, "Steven" <sc*****@verizo n.net>
wrote:

You could run an Update query:
Update SomeField set SomeField = Trim$(SomeField )
From SomeTable

-Tom.
>Hi,

There are a lot of white space inside each table field after getting Access
DB created with importation from excel file. Then the table and
forms/reports are looking bad.

Is there a way to automatically remove them? Or do we have some way to do
similar thing on excel file first?

Thanks.

Ste
Dec 23 '06 #2

"Steven" <sc*****@verizo n.netwrote in message
news:s51jh.1183 $kD4.212@trndny 06...
Hi,

There are a lot of white space inside each table field after getting
Access DB created with importation from excel file. Then the table and
forms/reports are looking bad.
What do you mean by "white space"? Are you talking about spaces or blank
characters at the beginning or end of the data, or are you talking about the
size of the display area for the Field in Datasheet View or the size of the
Controls in Forms and Reports (though I am reasonably sure that the size of
the data is not going to auto-adjust the size of Controls in Forms and
Reports).
Is there a way to automatically remove them?
Or do we have some way to do similar thing
on excel file first?
As has already been suggested, if it is leading or trailing blanks, the Trim
function will remove them.

Larry Linson
Microsoft Access MVP
Dec 23 '06 #3
Thanks guys. I'll try.
"Larry Linson" <bo*****@localh ost.notwrote in message
news:nT6jh.319$ cI.127@trnddc05 ...
>
"Steven" <sc*****@verizo n.netwrote in message
news:s51jh.1183 $kD4.212@trndny 06...
>Hi,

There are a lot of white space inside each table field after getting
Access DB created with importation from excel file. Then the table and
forms/reports are looking bad.

What do you mean by "white space"? Are you talking about spaces or blank
characters at the beginning or end of the data, or are you talking about
the size of the display area for the Field in Datasheet View or the size
of the Controls in Forms and Reports (though I am reasonably sure that the
size of the data is not going to auto-adjust the size of Controls in Forms
and Reports).
Is there a way to automatically remove them?
Or do we have some way to do similar thing
on excel file first?

As has already been suggested, if it is leading or trailing blanks, the
Trim function will remove them.

Larry Linson
Microsoft Access MVP


Dec 24 '06 #4

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

Similar topics

6
16158
by: Grumble | last post by:
Hello all, I want to read lines from a text file, where each line has the following syntax: token1:token2:token3 There could be white space between tokens and ':'
5
12340
by: Applebrown | last post by:
Hello, basically, I'm just learning intermediate CSS and trying to convert my old table webpage completely to CSS. Hoorah, right? Well, it's not quite going as planned. It's an extremely simple layout, and I'm finding myself stuck with small white space in between my images where I planned for the graphics to be stacked up right on top of one another. Here's the simple vertical layout: width is 640px, centered with a CSS border. I'd...
0
15186
by: Mark Moore | last post by:
I'm trying to layout a couple text input fields and their corresponding labels without using a table. When I was trying to debug my understanding of CSS, I was *very* surprised to see that span's with borders behave counter-intuitively (IMHO) when using style="white-space: nowrap;". Below is a fairly small chunk of XHTML that demonstrates what I'm talking about. What gives? -Mark
1
2216
by: Amar | last post by:
I have a web form with several fields. Depending on user selection in one combo box, i populate a text box and a check box in one line. For example if the user selects 2 years, then i show the user two lines with each line containing 1 text box and 1 check box. I have already put in 10 lines, using ,<tr> in a table, from which i display only the required number of <tr> in the code behind (setting the visible property of controls). Each...
2
6419
by: shagy | last post by:
Hi, I'm having a problem with a <select><option> which has white space in values... When I post the data I only get the first word (up to the white space). "Testing white space" becomes "Testing" after posting code... <select name="descr" id="descr">
12
7207
by: JA | last post by:
Is there a way to remove all the white space in the fields? I have been using Find-and-replace - looking for 2 or 3 or 4 or 10 spaces and replacing them with none. I don't want to replace single spaces, those are the spaces between the words. But most of what is in the fields has been cut-n-pasted from online forms, and the results can be VERY spread out. I could probably save 80% of the space if I could get rid of the extra white space....
2
2296
by: empiresolutions | last post by:
Hello, I am trying to clean up my "view source" code. Currently, due to the way i format my php/html code, the end viewable source looks really spread out with lots of white space between lines. Is there a way via CSS or using /n that will clean my code up a little. I have looked into Code Beautifing programs and am NOT intrested in them. Thanks.
5
2562
by: Richard Maher | last post by:
Hi, Can someone please show me how to tell Firefox to preseve white-space when returning the selectList.option.value attribute? I have change the style so that the white-space is preserved on the screen, but for some bizarre reason when I try to substring out a series of bytes (aka a fixed-length string or field) from a given option it squashes everything up and corrupts the result.
2
3862
by: progvar | last post by:
Hi i have not any idea how to remove white space in vb actualy i am accessing value from table some time the column is null and some time it contain space means user press space bar to remove data from that field when i access value null field executes but the field which contain white space please give some idea how i can remove executes data in both conditions or how i will remove white space thanks veer
0
7957
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...
0
7883
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8020
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
8252
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
5839
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
3875
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
3915
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1491
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.