473,700 Members | 2,953 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Eliminate Blank Rows

I have a mailing label report and would like to remove the space taken up by
rows with no info (move the other rows up).
I am a beginner using MS Access 2000 and would appreciate any help.

Thanks
Richard
Nov 13 '05 #1
7 19576
You have a couple of options. If you mean that when you run a query, some
rows have no information, you can set the criteria of one of the fields to:
<>"" And Is Not Null

If you are basing the report on a table directly, you can use a Delete query
to remove the empty rows. Something like:
Delete * from Your_Table Where Your_Field is null;

If you set a primary key to your tables, you will not have the problem of
having entire rows with no information

Mark
"Richard Yardley" <rh*@iafrica.co m> wrote in message
news:r4******** ************@is .co.za...
I have a mailing label report and would like to remove the space taken up
by
rows with no info (move the other rows up).
I am a beginner using MS Access 2000 and would appreciate any help.

Thanks
Richard

Nov 13 '05 #2
Hi Mark,

Thanks for the response, but maybe I didn't make myself clear.
I am printing labels from a query. The query has fields amongst others,
"address1" and "address 2". In my label report, I have fields stacked
vertically with "address1" followed by "address2" followed by "Town". If the
field for "address 2" is empty for a particular record, I want the
placeholder for "address 2" to disappear in the report so that the "Town"
field follows directly under "address1" - i.e. eliminate the blank space
that I'm getting at the moment. I hope this makes sense!!

Regards,
Richard
--

Regards,
Richard

(H) 031 309 8133
(C) 082 851 1415

33 Jubilee Court
93 Clarence Road
Essenwood
Durban 4001
"Mark" <ma**********@n tlworld.com> wrote in message
news:cc******** ****@newsfe3-win.ntli.net...
You have a couple of options. If you mean that when you run a query, some
rows have no information, you can set the criteria of one of the fields to: <>"" And Is Not Null

If you are basing the report on a table directly, you can use a Delete query to remove the empty rows. Something like:
Delete * from Your_Table Where Your_Field is null;

If you set a primary key to your tables, you will not have the problem of
having entire rows with no information

Mark
"Richard Yardley" <rh*@iafrica.co m> wrote in message
news:r4******** ************@is .co.za...
I have a mailing label report and would like to remove the space taken up
by
rows with no info (move the other rows up).
I am a beginner using MS Access 2000 and would appreciate any help.

Thanks
Richard


Nov 13 '05 #3
On your label report, right click on the address2 field and go to
Properties. Click the Format tab, then set the 'Can Shrink' property
to 'Yes'. Hope this helps!

Bruce

Nov 13 '05 #4
Thanks for the suggestion Bruce. I tried the "CAN SHRINK" format option in
my report on a field and it worked fine when the field didn't contain data,
the lower fields moved up. Perfect, but some fields contain the following
expression for example:
=([StreetNumber] & " " & [StreetName])
and I guess because there is a space (" "), the field does not shrink.
I tried =TRIM([StreetNumber] & " " & [StreetName]) and =CLEAN([StreetNumber]
& " " & [StreetName]), but get an "Enter the parameter value" prompt.
Any suggestions??

--

Regards,
Richard

(H) 031 309 8133
(C) 082 851 1415

33 Jubilee Court
93 Clarence Road
Essenwood
Durban 4001
<br***@aristotl e.net> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
On your label report, right click on the address2 field and go to
Properties. Click the Format tab, then set the 'Can Shrink' property
to 'Yes'. Hope this helps!

Bruce

Nov 13 '05 #5
I have dealt with similar issues by using an "if" statement.

Something like:

=iif([StreetNumber]is null,"",[StreetNumber]&" "&[StreetName])

that way if there is no street number (you could do the same thing with
StreetName of course) then it will go to the next line without putting
in the space.

Richard Yardley wrote:
Thanks for the suggestion Bruce. I tried the "CAN SHRINK" format option in
my report on a field and it worked fine when the field didn't contain data,
the lower fields moved up. Perfect, but some fields contain the following
expression for example:
=([StreetNumber] & " " & [StreetName])
and I guess because there is a space (" "), the field does not shrink.
I tried =TRIM([StreetNumber] & " " & [StreetName]) and =CLEAN([StreetNumber]
& " " & [StreetName]), but get an "Enter the parameter value" prompt.
Any suggestions??

--

Regards,
Richard

(H) 031 309 8133
(C) 082 851 1415

33 Jubilee Court
93 Clarence Road
Essenwood
Durban 4001
<br***@aristotl e.net> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
On your label report, right click on the address2 field and go to
Properties. Click the Format tab, then set the 'Can Shrink' property
to 'Yes'. Hope this helps!

Bruce


Nov 13 '05 #6

"Richard Yardley" <rh*@iafrica.co m> wrote
Thanks for the suggestion Bruce. I tried the "CAN SHRINK" format option in
my report on a field and it worked fine when the field didn't contain data, the lower fields moved up. Perfect, but some fields contain the following
expression for example:
=([StreetNumber] & " " & [StreetName])
and I guess because there is a space (" "), the field does not shrink.
I tried =TRIM([StreetNumber] & " " & [StreetName]) and =CLEAN([StreetNumber] & " " & [StreetName]), but get an "Enter the parameter value" prompt.
Any suggestions??

Using + to concatenate the strings will result in a Null value rather than a
space when needed. For instance,

(StreetNumber + " ") & StreetName

will not have a leading space, since Null + " " = Null
After the parenthesis, the result of the Addition will be Null & StreetName,
which concatenates as you are used to.
Darryl Kerkeslager
Nov 13 '05 #7
Darryl, your solution worked perfectly - thank you

Regards,
Richard
Durban 4001

"Darryl Kerkeslager" <Ke*********@co mcast.net> wrote in message
news:B9******** ************@co mcast.com...

"Richard Yardley" <rh*@iafrica.co m> wrote
Thanks for the suggestion Bruce. I tried the "CAN SHRINK" format option in my report on a field and it worked fine when the field didn't contain data,
the lower fields moved up. Perfect, but some fields contain the following expression for example:
=([StreetNumber] & " " & [StreetName])
and I guess because there is a space (" "), the field does not shrink.
I tried =TRIM([StreetNumber] & " " & [StreetName]) and

=CLEAN([StreetNumber]
& " " & [StreetName]), but get an "Enter the parameter value" prompt.
Any suggestions??

Using + to concatenate the strings will result in a Null value rather than

a space when needed. For instance,

(StreetNumber + " ") & StreetName

will not have a leading space, since Null + " " = Null
After the parenthesis, the result of the Addition will be Null & StreetName, which concatenates as you are used to.
Darryl Kerkeslager

Nov 13 '05 #8

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

Similar topics

1
1387
by: VM | last post by:
In the Windows datagrid (if read-only is false), a user can add another row to the grid if the Tab key is pressed when the cursor's in the last row and last column. Is there any way to eliminate this without making the grid read-only? I need to be able to modify the data in the grid and to add more rows to the grid. Thanks.
1
1801
by: satya.mahesh | last post by:
Hi All, I am working on a problem which "eliminates blank lines in export (between headings and when a heading is empty)". I want a macro which will do this job for me. For e.g: Heading1 Heading2
1
1191
by: yasin | last post by:
For instance there is a column which grabs city names from Sql Database, I want only see the rows whose city is new york.
10
5355
by: ranjitkumar | last post by:
Hi, Do anyone know a query for the following senario, I have a table in which i have multiple rows with the same entry. I want to keep only one copy of such rows. How to write a query to delete all the duplicate rows and have only one entry for such with a single query??? For example create table Employee {
2
7348
by: Drew | last post by:
Hi all - I've written a simple script to read a .csv file and then write out rows to a new file only if the value in the 4th column is a 0. Here's the code: import csv reader = csv.reader(open('table_export.csv','rb'))
2
2596
by: padawanlinuxero | last post by:
I have a program that goes to a MySQL table and puts all the data of the table in a CSV file, now I want to leave 6 rows in blank at top of the file when open in Excel, but I dont know how to do that. I use these to put all the data to into the csv file my $sql = "SELECT * INTO OUTFILE 'c:/proyecto/$filename' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\r\n' FROM t3132"; can someone help me with these problem?
10
3393
by: maryanncanor | last post by:
hi, Good day. I use Ms Access 2003 to export data from table to TEXTFILE. this is my Actual output: EMP003 Matt Dwayne EMP001 Josh Harnett EMP005 Peter Parker
1
4459
by: premMS143 | last post by:
Hi 1 & all, Using VB, How to remove blank rows in a Excel worksheet? For example, I'm having a Excel sheet containing 900 rows data, in which there are blank rows inserted in between. Manually I deleted 450 rows & is there any way to do this using VB? Please guide me. Thanx & regards, Prem
0
8713
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
9203
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, 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...
0
9059
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...
0
7795
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, 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...
1
6556
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
5897
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4396
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...
1
3082
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
3
2021
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.