Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / August 2006

Tip: Looking for answers? Try searching our database.

Conditional Textbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steven - 16 Aug 2006 19:40 GMT
Hi, I'm new to Forms Coding, I would like a text box to display the word
"member" if a value in the forms underlying query is true (bit - checkbox)

I have the following as the text box's control source:
IIf(Nz(ActiveMemberCompany)) = yes, "Member")

not working, please help, thanks
fredg - 16 Aug 2006 20:16 GMT
> Hi, I'm new to Forms Coding, I would like a text box to display the word
> "member" if a value in the forms underlying query is true (bit - checkbox)
[quoted text clipped - 3 lines]
>
> not working, please help, thanks

Using an unbound text control:
=IIf([CheckBoxFieldName]=-1,"Member","")

Make sure the name of this control is not "CheckBoxFieldName".
Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Klatuu - 16 Aug 2006 20:36 GMT
Yes has no meaning.  Use True or -1.  True is better because it is eacy to
read.

> Hi, I'm new to Forms Coding, I would like a text box to display the word
> "member" if a value in the forms underlying query is true (bit - checkbox)
[quoted text clipped - 3 lines]
>
> not working, please help, thanks
Steven - 16 Aug 2006 21:15 GMT
thanks much, tried "true" before and couldnt get it, would you believe i
forgot the equal sign at the beginning, looonggg day! Thanks for your help

> Yes has no meaning.  Use True or -1.  True is better because it is eacy to
> read.
[quoted text clipped - 6 lines]
> >
> > not working, please help, thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.