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? 1 1986
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 database, trailing and leading spaces are removed
using a call to the Trim()function.
This works the first time data is inserted into the database. However,
if the data is modified (via web forms) and then resubmitted (after
calling the Trim()...
|
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 blurb . . . On the
main page of the site, I want to have a box that shows "Current News"
and only pulls the first 7 or so words from the news blurb followed by
a ... where is a link to the current news page.
For example, the database entry may...
|
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 text,text,radio,checkbox and select.
When I run the following code, it correctly reports "text" (for input
|
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.
I had a number of textboxes in the report designs that used the trim()
function to suppress printing of leading spaces. As an example, one of
the textboxes had the following:
=Trim()
Basically, this is looking for a situation where someone...
|
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 information).
How could I read information about forms and reports in .adp application ?
Has .adp any information about forms and reports ?
Is it possible to read from a table what forms and reports you have in
| |
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 have done
something wrong here....
I've tried both of these...
=Trim( & )
=Trim( &", "& )
|
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.
Dim txt As TextBox = DirectCast(sender, TextBox)
txt.Text = Trim(txt.Text)
I get an invalid cast error
|
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 thought I'd change it to the VB
..NET method "String.Trim" but that throws an object exception.
Which brings the question: is it compliant to use Trim(String), or is it
more within etiquette to use If Not String Is Nothing Then String.Trim?
|
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 *trim(char *s)
{
char *begin,*end;
begin = s;
|
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...
|
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,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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...
| |