473,499 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

trim() works differently on forms and reports?

I used the labal wizard to create a report to print mailing labels. When I
did, access uses the trim() function for each of the text fields. My labels
contain 4 lines... name, name2, address, citystatezip. The way that access
set up the report (using trim() I presume) if there is no data in the name2
fields, access eliminates the space where it would go rather than leaving a
blank line. I was unaware of this function but quickly put it to use on a
number of my reports. I then tried it on a form. The form simply displays
the same info as the mailing list. It, however does not display the same
way. If name2 is blank, access shows a blank line. I saved the form as a
report and the blank line dissapears again. Am I making a correct assumption
that the trim() function either a) does not work the same way on a form as
it does in a report, or b)there is something else about that label wizard
report that causes it to perform the way it does?
Oct 7 '06 #1
1 1963
Jimmy Stewart wrote:
I used the labal wizard to create a report to print mailing labels.
When I did, access uses the trim() function for each of the text
fields. My labels contain 4 lines... name, name2, address,
citystatezip. The way that access set up the report (using trim() I
presume) if there is no data in the name2 fields, access eliminates
the space where it would go rather than leaving a blank line. I was
unaware of this function but quickly put it to use on a number of my
reports. I then tried it on a form. The form simply displays the same
info as the mailing list. It, however does not display the same way.
If name2 is blank, access shows a blank line. I saved the form as a
report and the blank line dissapears again. Am I making a correct
assumption that the trim() function either a) does not work the same
way on a form as it does in a report, or b)there is something else
about that label wizard report that causes it to perform the way it
does?
What you are seeing on the report is not Trim(). It is the capability of
controls on reports to shrink and grow vertically. Shrinking in this case means
to disappear entirely when the field value is null.

Control on forms also have these properties but they only pertain to printing
the form, not to on-screen usage.
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Oct 7 '06 #2

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

Similar topics

6
4089
by: Dominic | last post by:
Here is the general problem: Information is taken from a form (consisting of text boxes, drop down lists et cetera) and submitted to an Access database. Before the data is inserted into the...
9
2602
by: Johnboy | last post by:
Hi, I'm creating a website that will have a page that lists current news items. The news items will be stored in a SQL Server database and will have basically two fields, the date and the news...
12
2271
by: Randell D. | last post by:
Folks, I have a form called "ourTestForm". Its a test form - nothing special - it contains five input tags - they are named one, two, three, four and five. The input tags are of type...
5
10511
by: Dave Bovey | last post by:
I created a church database in Access 97 that contain the typical Name, Address, and Phone Number information fields. I had a number of different reports to print query data in different formats. ...
2
1836
by: Timppa | last post by:
Hi, I have Access 2000 and now I'm converting .mdb database to .adp and Sql Server 2000. In old .mdb application I have a query which handles msysobjects table (reading forms and reports...
3
2724
by: FlyerN87 | last post by:
For some reason this command will not trim the names shown in the fields listed. I'm trying to do this in a text box on a report. I've done this fairly succesfully in other reports but I must...
8
1382
by: Woody Splawn | last post by:
Could someone give me a suggestion for writing generic code in a validating event for trimming the value of a textbox entry? I thought something like the following might work but it does not. ...
22
9693
by: Terry Olsen | last post by:
I have an app that makes decisions based on string content. I need to make sure that a string does not contain only spaces or newlines. I am using the syntax 'Trim(String)" and it works fine. I...
31
2860
by: rkk | last post by:
Hi, I've written a small trim function to trim away the whitespaces in a given string. It works well with solaris forte cc compiler, but on mingw/cygwin gcc it isn't. Here is the code: char...
0
7134
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,...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7225
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...
1
6901
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...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
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...
0
4605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1429
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 ...
0
307
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...

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.