473,386 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Autofit fields in Access

43
Hi All,

Am trying to create a report and have three fields that need to go next to each other - Title, FirstName, LastName but when they show up on the report the spacing between them in uneven and looks unprofessional.

I was wondering if there is a way of putting them next to each other so they only use the space they need to and have just one space between each.

Also, using design view, I would like the address to appear without any gaps in it as the form has:
Address 1
Address 2
State
County
Post Code
Country

And not everyone has all of those lines and I would not like gaps to appear where there are blanks.

Many thanks in advance for your kind help

Edd
Apr 8 '07 #1
2 5642
ADezii
8,834 Expert 8TB
Hi All,

Am trying to create a report and have three fields that need to go next to each other - Title, FirstName, LastName but when they show up on the report the spacing between them in uneven and looks unprofessional.

I was wondering if there is a way of putting them next to each other so they only use the space they need to and have just one space between each.

Also, using design view, I would like the address to appear without any gaps in it as the form has:
Address 1
Address 2
State
County
Post Code
Country

And not everyone has all of those lines and I would not like gaps to appear where there are blanks.

Many thanks in advance for your kind help

Edd
__1. In the underlying Record Source for the Report, create a Calculated Field called FullName as indicated in the code block below:
Expand|Select|Wrap|Line Numbers
  1. FullName: Trim([Title] & " " & [FirstName] & " " & [LastName])
__2. Eliminate the Title, FirstName, and LastName Text Boxes that you would like to have next to each other.
__3. Add a single Text Box and set its Control Source equal to the FullName Field.
__4. All Name Fields in each Record should now be more appropriately positioned as indicated below.

Sample Output:
Expand|Select|Wrap|Line Numbers
  1. Mr. David Abecunas
  2. James Alberici
  3. Eric Allen
  4. Mr. Joseph Andrews
  5. Lawrence Appiott
  6. Medlen Arevalo
  7. Sir David Armella
  8. Andrew Baldwin
  9. Harry Bannan
  10. Edward Bayer
  11. Thomas Beck
  12. Lawrence Belitsky
  13. Daniel Bennett
  14. John Bilkins
  15. Thomas Bitto
  16. Matthew Black
  17. Francis Boettcher
Apr 8 '07 #2
xian2
43
Excellent,
Thank you so much for your help.
Best wishes
Edd
Apr 9 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Andrew UK | last post by:
I have a query that returns the following sample data: Surname, Baptised, Confirmed, Regular Communicant. The last 3 fields are yes/no type. I want to report the number of "Yes" answers in each...
1
by: mark | last post by:
I'm stuck: In a query I am trying to compare two fields with a date/time data type and a LongTime format to get the difference in hours (minutes and seconds if possible). After that I need to...
0
by: ImraneA | last post by:
Hi there Many thanks to those people who contributed to this group, helped me greatly. Enclose, my code, hope it helps others :- Public Function Export_Excel_9(tbx1 As Variant, tbx2 As...
0
by: ImraneA | last post by:
Hi there Have a database, where front-end interface allows user to select a ms access database. From there, standard tables are linked. Routine, that creates a spreadsheet, for each table a...
1
by: Srini | last post by:
Hi, I am trying to import an xml file which has more than 255 fields. Access is unable to import the xml file into tables and gives the error message "Too many fields defined." in ImportErrors...
1
by: Rolan | last post by:
I need to be able to remove <BR>'s that are placed in null fields (Access 97) for blank records when doing html imports. Of course, Access does not recognize the html tags and are invisible. Aside...
6
by: Don Sealer | last post by:
Can you tell me how many fields Access will allow in a table. As I stated in a previous post, I need to track multiple measurements from machines 10 per day. In some cases this will give me 120...
3
by: kaosyeti | last post by:
i have a form that has required fields and i have a delete button, created by the wizard, that has this code for onclick: Private Sub cmddeleterecord_Click() On Error GoTo...
1
by: David | last post by:
Hi, I have a table called 'jobserial' This contains amongst others, 2 fields called 'PSL_F_Serial' & 'PSL_L_Serial' Both of these are 'Text' fields (VarChar) which at present hold serial...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
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...

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.