473,503 Members | 9,836 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Report IF

NN
Hi,

I have a report with a text box (txtNotes), I would like for the label
(lblNotice) to be only visable is there is text in the text box (meaning do
not show lblNotice if txtNotes is blank). I can't figure out the code for
this?

Also is it possible to create a watermark-like label? So you can see the
text boxes and labels that are on top of the label I want to watermark.
Reason being I want *SEE NOTES* is light grey over the invoice contents if
txtNotes has a message in it.

Many thanks in Advance :-)

Nicholas.
Jun 22 '06 #1
2 1302
On format event In the section your label is in try this
If Nz(Me.txtNotes)<>"" Then
Me.lblNotes.Visible=True
Me.lblOther.ForeColor=vbRed
Else
Me.lblNotes.Visible=False
Me.lblOther.ForeColor=vbBlack
End If

Jun 22 '06 #2
On Thu, 22 Jun 2006 04:12:04 GMT, NN wrote:
Hi,

I have a report with a text box (txtNotes), I would like for the label
(lblNotice) to be only visable is there is text in the text box (meaning do
not show lblNotice if txtNotes is blank). I can't figure out the code for
this?

Also is it possible to create a watermark-like label? So you can see the
text boxes and labels that are on top of the label I want to watermark.
Reason being I want *SEE NOTES* is light grey over the invoice contents if
txtNotes has a message in it.

Many thanks in Advance :-)

Nicholas.


In a report?
Code the Detail Format event:
[lblNotice].Visible = Not IsNull([txtNotice])

I'm not sure I follow what you intend the watermark label to do.
To add a label to the report as a 'watermark' create the label. Size
it as needed. Place it where you wish.
Make sure it's BackStyle is set to Transparent.
Click on Format + Send To Back.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jun 22 '06 #3

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

Similar topics

3
3683
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
1
17629
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
6
3648
by: Bob Alston | last post by:
I am looking for Access reporting add-in that would be easy to use by end users. My key focus is on selection criteria. I am very happy with the Access report writer capabilities. As far as...
1
16357
by: lorirobn | last post by:
Hi, I have a report that works just fine. Now I would like to add the capability to choose selection criteria to limit what is displayed. I created several reports that do this, but they used...
1
7494
by: monskie | last post by:
Hello to all, I have a problem which could be trivial to you guys. This concerns opening several crystal reports on the a crystal viewer on an ASPX page by calling window.open. My...
6
9377
by: Dave | last post by:
On my form I have combo boxes. These combo boxes, after updating them, populate respective listboxes that are located below the combo boxes on the same form. I am trying to use a "generate...
3
18680
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
12
3510
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to...
11
7294
by: Gord | last post by:
When I open a certain report, it runs some code that generates the records that will be displayed in that report. This works fine. When I go to print preview the report it appears that the code...
0
1105
by: akmaRudiliyn | last post by:
Hi..i am newbie and student in programming,so need help from expert. Here is what i want to do. 1-I want to create Report System/Reporting System. 2-User must choose database and enter username...
0
7207
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
7095
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...
1
7015
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
7470
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
5602
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,...
0
3183
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.