473,406 Members | 2,220 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,406 software developers and data experts.

Text in an expression

Ok I have a report that lists different contact numbers, phone, fax,
email. When I print the report I need a label for example Phone:
(xxx) xxx-xxxx but if there is no phone number then I need the next one
printed example Fax: (xxx) xxx-xxxx. Each record could have all or
only one or two of the numbers, I dont' want the labels to print unless
there is a number, how can I do this?

thanks

Jun 20 '06 #1
1 1220
On 20 Jun 2006 11:57:07 -0700, Propoflady wrote:
Ok I have a report that lists different contact numbers, phone, fax,
email. When I print the report I need a label for example Phone:
(xxx) xxx-xxxx but if there is no phone number then I need the next one
printed example Fax: (xxx) xxx-xxxx. Each record could have all or
only one or two of the numbers, I dont' want the labels to print unless
there is a number, how can I do this?

thanks


Your use of the term 'Label' is ambiguous in Access.
A label may be a control on a report or a printable mailing label as
well as a text identifier.

I'll guess you mean a text identifier on a report.
If I understand you correctly, you wish to print either

Phone: (210) 123-4567 Fax: (210) 987-6325
or if there is no Phone #
Fax: (210) 987-6325

Use an unbound Text Control.
set it's control source to:
=IIf(IsNull([Phone]),"Fax: " & [Fax#], "Phone: " & [Phone#] & " " &
"Fax" " & [Fax#])

If you think there may be a Phone# but no Fax#, then you can use:
=IIf(IsNull([Phone]),"Fax: " & [Fax#], "Phone: " & [Phone#] & (" "
& "Fax" " + [Fax#]))
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jun 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: gimme_this_gimme_that | last post by:
I once downloaded a shareware program that allowed you to open an xml file, click on a text or an attribute, an then see the xpath expression that would fetch that data. The program didn't...
27
by: C Gillespie | last post by:
Dear All, Hopefully I have a simple problem. Basically, I just want to alter some text with JS. Here is some of my test code: <snip> <script type="text/javascript"> var tmp='a';
2
by: C# newbie | last post by:
Hi, I'm new to xml and sometimes gives me a hardtime. is there any xpah query that returns a particular string I'm looking for? I used: //*contains(text()="foo") the "foo" could be in any...
4
by: Steve | last post by:
Hi, I have a table which contains records of user access and searches made within an application, this is a sample of the data: response for 101 results from database in 28906 ms I only...
1
by: Andre | last post by:
I am needing to Parse some text fields, where a 3rd party application i use stores data from a user created expression. the user creates and expression such as this: ActualSizeYN =Y?...
5
by: Cro | last post by:
Hello Access Developers, I'd like to know if it is possible to perform a count in an expression that defines a control source. My report is based on a query. In my report, I want a text box to...
1
by: tomlebold | last post by:
Should text boxes or combo boxes be renamed on bound forms? In other word should the Department Name property be the same as Control Source property? I never rename them, but my IT manager seems...
3
by: EMC ROY | last post by:
Dear all, I'm a postgraduate student in Hong Kong, studying english language. I wanna seek help from all of you about some plain text manipulation. I have already add part-of-speech (POS) tags...
1
by: JosAH | last post by:
Greetings, Introduction This week we start building Query objects. A query can retrieve portions of text from a Library. I don't want users to build queries by themselves, because users make...
6
by: Prime Mover | last post by:
In C, if I have three variables obtained in a loop like: for(i=0;i<N;i++) { x = ....{expression here}; y = ....{expression here}; z = ....{expression here}; }
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
0
tracyyun
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...
0
agi2029
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,...

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.