473,387 Members | 1,495 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,387 software developers and data experts.

Access 2007 - Placing a portion of report text in a particular column

I'm using Access 2007 under Windows XP.

I'm creating a a multiline directory list for members of a club with three lines for each member.

Each listing has three textboxes and within the first textbox I have code like:
=Trim(lastname] &", " & [firstname] ...... & [Telephone]) with more fields where I show the ...... in this example.

I want the Telephone data to start at a specific column so that all Telephone data lines up. What do I add to insure this?
Sep 29 '08 #1
1 1111
ADezii
8,834 Expert 8TB
The following code will precisely position the Telephone Numbers at Column 25. I used the [LastName], [FirstName], and [HomePhone] Fields from the Northwind Database for my code demo and will display the SQL along with the subsequent Output. In order for this logic to be effective, you must used a Fixed Width Font in Datasheet View, such as Courier:
  1. SQL
    Expand|Select|Wrap|Line Numbers
    1. SELECT [LastName] & ", " & [FirstName] & Space$(25-Len([LastName] & ", " & [FirstName])) & [HomePhone] AS [Directory List]
    2. FROM Employees;
  2. OUTPUT
    Expand|Select|Wrap|Line Numbers
    1.             Directory List
    2. Davolio, Nancy           (206) 555-9857
    3. Fuller, Andrew           (206) 555-9482
    4. Leverling, Janet         (206) 555-3412
    5. Peacock, Margaret        (206) 555-8122
    6. Buchanan, Steven         (741) 555-4848
    7. Suyama, Michael          (171) 555-7773
    8. King, Robert             (761) 555-5598
    9. Callahan, Laura          (206) 555-1189
    10. Dodsworth, Anne          (741) 555-4444
    11.  
Sep 29 '08 #2

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

Similar topics

14
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
27
by: Wayne | last post by:
I've been clicking around Access 2007 Beta 2 and can't see the custom menu bar designer. Is it in the beta? Maybe I'm blind. The question that comes to mind is: Will custom menu bars be the same...
2
by: amitp | last post by:
I've an order placing application which generates reports(RTF) for a particular order deatils. My Vb applicaiton retrieves all the details for the particular order from the database and puts it in an...
2
by: Wayne | last post by:
I've been having a click around Access 2007 this afternoon and have discovered some things that range from annoying to alarming. My Access 2003 menu bars, which I, like many others, use...
5
by: LadyIlsebet | last post by:
I'm not a fantastic Access developer, but I'm trying to help get Inventory and whatnot organized at work. They are used to 5 year budget plans that list out exactly what has to be purchased what...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...

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.