190d2 Report Fields that Auto Shrink/Grow
Sign Up |  Live StatsLive Stats    Articles 37,335| Comments 177,302| Members 19,419, Newest Nahluwalia| Online 524
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Report Fields that Auto Shrink/Grow

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Auto Complete Fields DerekCraine Information Technology 2 28-Jul-2006 08:27 AM
Report columns that Can Shrink charles.kendricks@charter.net Information Technology 2 28-Jul-2006 08:19 AM
Can Shrink Report Columns ? charles.kendricks@charter.net Information Technology 0 28-Jul-2006 08:17 AM
How to auto shrink or grow a line in report? Adnan Information Technology 1 28-Jul-2006 08:16 AM
Auto size fields in an Access report Mettá Information Technology 4 28-Jul-2006 07:59 AM


Tags
auto, fields, report, shrink or grow, shrinkgrow
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:12 AM
vikenk@aol.com's Avatar vikenk@aol.com
Guest
 
Posts: n/a
   
   
Report Fields that Auto Shrink/Grow

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hello everyone,

When creating a report of mailing labels, is it possible to make each
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10383-report-fields-that-auto-shrink-grow.html
field grow and shrink accordingly so there aren't awkward spaces
between first names and last names? I tried going into the Properties
in Design mode and setting "Can Grow" and "Can Shrink" to YES, but that
doesn't seem to do the trick. See this sample layout:

First Name Last Name
Address 1
Address 2
City State ZIP

If I size the First Name field to accomodate long names, there's an big
gap between shorter first names and the last name. If there's no first
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383
name at all, there's a big space before the last name. I'd like the
field to shrink for short names, grow for long names and disappear for
no names. If there's no Address 2, I'd like the City, State, ZIP fields
to shift up accordingly. Can these be done?

Thanks a lot.

--
Viken K.
http://www.vikenk.com



Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:12 AM
kerry_ja@yahoo.com's Avatar kerry_ja@yahoo.com
Guest
 
Posts: n/a
   
   
Re: Report Fields that Auto Shrink/Grow

Instead of having 1 field for first name, and another for last name,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383
have 1 field for Name, and have it be an expression, that combines the
2 together.

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:12 AM
vikenk@aol.com's Avatar vikenk@aol.com
Guest
 
Posts: n/a
   
   
Re: Report Fields that Auto Shrink/Grow

Can you exand on how to do that? I'm not really knowledgeable about
writing expressions. Thanks :>)

--
Viken K.
http://www.vikenk.com
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:12 AM
xRoachx's Avatar xRoachx
Guest
 
Posts: n/a
   
   
Re: Report Fields that Auto Shrink/Grow

Hi Viken -- To do this, open the report in design view and add an unbound
text box to the report. Set the control source to:

=[First Name] & " " & [Last Name]

Where the First Name and Last Name are the names of your fields. You could
similarly concactenate the Address1 and Address2 fields but they would appear
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383
on the same line.

"vikenk@aol.com" wrote:

> Can you exand on how to do that? I'm not really knowledgeable about
> writing expressions. Thanks :>)
>
> --
> Viken K.
> http://www.vikenk.com
>
>

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:12 AM
vikenk@aol.com's Avatar vikenk@aol.com
Guest
 
Posts: n/a
   
   
Re: Report Fields that Auto Shrink/Grow


xRoachx wrote:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383
> Hi Viken -- To do this, open the report in design view and add an unbound
> text box to the report. Set the control source to:
>
> =[First Name] & " " & [Last Name]


Thanks! It worked great! I had tried plunking though it. I used the
Expression Builder to make this:

=[First Name]+[Last Name]
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383

It worked, but only when there was BOTH a first name and a last name.
If one of the fields were empty, the whole expression was blank.

> You could
> similarly concactenate the Address1 and Address2 fields but they would appear
> on the same line.


This may be a dumb question, but I suppose there wouldn't be a way to
add a line break to the expression?

--
Viken K.
http://www.vikenk.com

Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:12 AM
xRoachx's Avatar xRoachx
Guest
 
Posts: n/a
   
   
Re: Report Fields that Auto Shrink/Grow

Ah, I assumed you would have both names...

To take care of the blanks, use the Nz function:

=Nz([First Name], " ") & " " & Nz([Last Name], " ")

Regarding the line break, this can be added by using the ASC II value but
you still have the same problem if address2 is blank.

"vikenk@aol.com" wrote:

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383
>
> xRoachx wrote:
> > Hi Viken -- To do this, open the report in design view and add an unbound
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383
> > text box to the report. Set the control source to:
> >
> > =[First Name] & " " & [Last Name]

>
> Thanks! It worked great! I had tried plunking though it. I used the
> Expression Builder to make this:
>
> =[First Name]+[Last Name]
>
> It worked, but only when there was BOTH a first name and a last name.
> If one of the fields were empty, the whole expression was blank.
>
> > You could
> > similarly concactenate the Address1 and Address2 fields but they would appear
> > on the same line.

>
> This may be a dumb question, but I suppose there wouldn't be a way to
> add a line break to the expression?
>
> --
> Viken K.
> http://www.vikenk.com
>
>

Reply With Quote
  #7 (permalink)  
Old 28-Jul-2006, 08:12 AM
vikenk@aol.com's Avatar vikenk@aol.com
Guest
 
Posts: n/a
   
   
Re: Report Fields that Auto Shrink/Grow


xRoachx wrote:
> Ah, I assumed you would have both names...


Thanks for the info. I think you misunderstood me, though :>) Your
original solution of using =[First Name] & " " & [Last Name] works
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383
perfectly, even when one of the fields is blank.

It was *my* ealier attempt at building the expression =[First
Name]+[Last Name] that was the one that failed when one of the fields
was blank.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383

I have found myself suddenly doing a buch of database "work" (it's more
like volunteer work for friends) after not having done any for a long
time. You'll be seeing me on this board a few more times :>)

--
Viken K.
http://www.vikenk.com

Reply With Quote
  #8 (permalink)  
Old 28-Jul-2006, 08:12 AM
xRoachx's Avatar xRoachx
Guest
 
Posts: n/a
   
   
Re: Report Fields that Auto Shrink/Grow

  Donate Today!  
No problem, I'm glad I could help. These boards are a very good resource for
answers and solutions...

"vikenk@aol.com" wrote:

>
> xRoachx wrote:
> > Ah, I assumed you would have both names...

>
> Thanks for the info. I think you misunderstood me, though :>) Your
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383
> original solution of using =[First Name] & " " & [Last Name] works
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10383
> perfectly, even when one of the fields is blank.
>
> It was *my* ealier attempt at building the expression =[First
> Name]+[Last Name] that was the one that failed when one of the fields
> was blank.
>
> I have found myself suddenly doing a buch of database "work" (it's more
> like volunteer work for friends) after not having done any for a long
> time. You'll be seeing me on this board a few more times :>)
>
> --
> Viken K.
> http://www.vikenk.com
>
>

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
How does Sikhi help you...
Today 15:06 PM
36 Replies, 1,017 Views
Request for assistance...
Today 09:34 AM
10 Replies, 136 Views
Occultism - Rejection in...
Today 08:44 AM
62 Replies, 2,664 Views
‘Bigoted’ Facebook...
Today 08:32 AM
1 Replies, 59 Views
Australia mulls allowing...
Today 07:30 AM
0 Replies, 45 Views
Woolwich Killing: The...
Today 06:41 AM
3 Replies, 75 Views
Panjabi
By Ishna
Today 04:40 AM
16 Replies, 314 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 03:09 AM
316 Replies, 7,651 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 03:00 AM
179 Replies, 4,550 Views
Transgenderism ... Right...
By Kaylee
Today 00:33 AM
25 Replies, 1,274 Views
Losing My Religion: Why...
Today 00:00 AM
14 Replies, 396 Views
Kirtan
Yesterday 21:24 PM
0 Replies, 42 Views
Keeping Amrit Vela
Yesterday 16:49 PM
12 Replies, 942 Views
Do you believe in...
Yesterday 15:08 PM
196 Replies, 4,118 Views
Black Sikhs?
Yesterday 06:33 AM
20 Replies, 5,924 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 15:55 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.50912 seconds with 32 queries
0