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 7 19634
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
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
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
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
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
"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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
|
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
|
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.
|
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
{
|
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'))
| |
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?
|
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
|
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
|
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: 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...
|
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,...
| |
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: 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...
|
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...
| |