Rabu, 02 Agustus 2017

Re: [MS_AccessPros] Text alignment in Text Box of a report

 

Khalid-

Do this:

=("Office:" + [TelephoneOffice]) & ("                 Residence: " + [TelephoneResidence]) & (" Cell:" + [MobileNo1]) & (" Email: " + [MemberEmail])

When you use + instead of & to concatenate, if any string is Null, the entire string will be empty.

John Viescas, author
Effective SQL
SQL Queries for Mere Mortals
Microsoft Office Access 2010 Inside Out
Microsoft Office Access 2007 Inside Out
Building Access Applications

On Aug 2, 2017, at 14:34, khalidtanweerburrah@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

Hi all,


In one of my report on its Detail Section i have four text boxes and their Control source pattern is same except the data.

I need that each piece of information displays in single line, in the designed column width and same row, and if the data is not available for that field it should not display.


For e.g Text Box "TelephoneEmailCell" Control Source is:


="Office:" & [TelephoneOffice] & "                 Residence: " & [TelephoneResidence] & " Cell:" & [MobileNo1] & " Email: " & [MemberEmail]

(I have put extra spaces trying to adjust the display)


I need the display as below in separate lines:

Office: (The number it has) ------ If "TelephoneOffice" is Null, then "Office:" should not display

Residence: (The number it has) --- If "TelephoneResidence" is Null, then "Residence:" should not display

Cell: (The number it has) --- If "MobileNo1" is Null, then "Cell:" should not display

Email: (Email address) --- If "MemberEmail" is Null, then "Email:" should not display


Any possibilities there to accomplish this ? If so, please help.


Regards,

Khalid


__._,_.___

Posted by: John Viescas <johnv@msn.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar