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

Help with setting a label to Visible

I have an access data base we use to create reminder letters for our dr's patients. The patients appts are imported into access, a query ran on the data and report is used to make the actual letter. I want to add a custom txt box or label for one of the dr's but want to do it based on the dr's name. Here is the code i have:

If (Me.RESC_NAME = "Dr name taken out for security purpose") Then
Me.txtTurner.Properties.Visible = True
Else
Me.txtTurner.Properties.Visible = False
End If

if I just do me. to see what options i get, the txtTurner is not in the list but other text boxes and labels are. Any ideas?
Nov 10 '08 #1
4 1471
I have also tried this on a click event:

If (Me.RESC_NAME = "Dr name") Then
Report_CNT.txtTurner.Properties.Application.Visibl e = True
Else
Report_CNT.txtTurner.Properties.Application.Visibl e = False
End If

and that didn't work either.
Nov 10 '08 #2
ChipR
1,287 Expert 1GB
It looks like you want to use iif in the field definition
IIf(expr, truepart, falsepart)
so iif("DrName = ""Whatever""", replacement, DrName)
and the replacement can just be "" if you want.
Chip
Nov 10 '08 #3
missinglinq
3,532 Expert 2GB
Your basic syntax is incorrect.

Me.txtTurner.Properties.Visible = True

should simply be

Me.txtTurner.Visible = True

Welcome to Bytes!

Linq ;0)>
Nov 10 '08 #4
ChipR: That did the trick. I very much appreciate your help. I spent all most all day yesterday trying to get this to work.
Nov 11 '08 #5

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

Similar topics

3
by: Mike | last post by:
Hey guys I am pulling my hair out on this problem!!!!! Any help or ideas or comments on how to make this work I would be grateful! I have been working on this for the past 4 days and nothing I do...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
2
by: News | last post by:
Hi, I need help with datalist and linkbutton. I need a LinkButton to display in datalist if datafield "is_measure_customchecklist" in a db table set to true. Here is the code (in parts): ...
1
by: Mike | last post by:
Hi, I am developing a JavaScript calendar control. I want my user control to expose a property that returns the value of the selected calendar date. I have an "input" control that displays the...
1
by: tshad | last post by:
I am trying to find the best way to set up RadioButtons, CheckBoxes, and textboxes on the fly. What I am doing is putting on a page questions and answers that the user has defined in his file. ...
7
by: Aaron | last post by:
Complete code follows. I am new to .NET programming (and programming in general) and I am having a difficult time understanding how to fill a variable in one sub, and then access it from...
4
by: News | last post by:
Hi, I need help with datalist and linkbutton. I need a LinkButton to be visible in datalist only on the condition when datafield "is_measure_customchecklist" in a db table set to true. Here...
5
by: Raj | last post by:
Hi, I have a ASP.NET project which is working fine and I need to align controls in a .aspx page. The webform( .aspx page) has variety of controls (labels, textboxes, radio buttons etc) and when...
2
by: ssmeshack | last post by:
Hai all, Im having problem to set minimum height to <td> tag. It only takes height only not min-height. Im ie7 browser and developing web based system in Visual Web Deveploper 2008 (C# .Net). ...
9
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I have a MDI Container Form, with one label control on the Background of this container form. When I now open a child form, this form is behind the label ... and this looks ugly ... :-))...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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...
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
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...

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.