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

Textbox update & Check box = Update link

41
Hello everyone,

I have two forms: FORM1 and FORM2.

On FORM1 there is a check box (CHECK). When CHECK is checked, the data is updated in a YES/NO data type table (TABLE) field.

On FORM2 I have a text box (TEXTBOX).

When the YES/NO data field in TABLE is set to YES (that is to say when CHECK in FORM1 was checked, ie when CHECK = TRUE), I want TEXTBOX to return the text “YES”. Otherwise, I want TEXTBOX to return the text “NO”.

Moreover, I would like “YES” to be in a green colour and “NO” to be in a red colour.

What would be the code to do that?

Please note that FORM1 and FORM2 return several filtered data (I don’t know if this makes a difference in the code…).

I hope I was clear enough.

Thank you for your help.

Best regards,

G.
Jan 8 '07 #1
6 2726
Killer42
8,435 Expert 8TB
Is the textbox on form2 bound? If it is bound to a Yes/No field, perhaps you can get away with just setting the format on the field. As for the red/green, I think Acces can do conditional formatting, something like Excel.
Jan 8 '07 #2
NeoPa
32,556 Expert Mod 16PB
I don't think you have conditional formatting available but setting colours in code - at the same time the value is set can certainly be done.
Jan 9 '07 #3
Killer42
8,435 Expert 8TB
I don't think you have conditional formatting available but setting colours in code - at the same time the value is set can certainly be done.
D'oh! I had to do the very same thing myself, back around November. What a memory... :o
Jan 9 '07 #4
Gari
41
I didn't linked the box actually. So I have done it and it works perfectly !
For the colour, it does exist a conditionnal formating in Access.

Thank you very much for your help ! Appreciated.
Jan 9 '07 #5
Killer42
8,435 Expert 8TB
I didn't linked the box actually. So I have done it and it works perfectly !
For the colour, it does exist a conditionnal formating in Access.
Hooray! I win. :D

Seriously, glad we were able to help.
Jan 9 '07 #6
NeoPa
32,556 Expert Mod 16PB
As for the colour, Conditional Formatting does exist in Access.
I'll make a note of that thanks.
Jan 9 '07 #7

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

Similar topics

3
by: Ronald S. Cook | last post by:
Hi all, I have an ASP.NET DataGrid wherein there is an edit link for each row. Upon clicking the link, certan fields in that row display in text boxes so that they may be edited. I would like...
3
by: Nic | last post by:
Hey, I have an ASP-application. In the ASPX I have an <asp:dropdownlist ..>. Now when I leave this control I want to initialisize some other fields. In window forms we uses the onleave event but...
28
by: kfrost | last post by:
I know this is probably simple but I have a C# form and the class for the form is called sbaSynch. I have a textbox name txtServerName. I'm creating a class to manipulate XML functions so I...
1
by: VB Programmer | last post by:
With HTML, how do I get the value of a textbox in an ItemTemplate column within a datagrid? Simple shopping cart. For each row: 1 column is a textbox where they can enter the quantity. 1...
6
by: JohnR | last post by:
I have a table with 1 row which is used to hold some application wide items (one item per field, hence I only need 1 row). I want to bind one of the fields to a textbox. After setting up the...
0
by: Seok Bee | last post by:
Dear Experts, In my web form, I've a few textbox controls. These controls are to capture date and time. Therefore, I've a calendar link to allow user to make a date and time selection into the...
16
by: ARC | last post by:
Hello all, So I'm knee deep in this import utility program, and am coming up with all sorts of "gotcha's!". 1st off. On a "Find Duplicates Query", does anyone have a good solution for...
2
osward
by: osward | last post by:
Hello there, I am using phpnuke 8.0 to build my website, knowing little on php programing. I am assembling a module for my member which is basically cut and paste existing code section of...
10
by: pt36 | last post by:
Hi I have a page with a form and a textbox. before to submit the form I want to chek if the inserted value in the textbox is already present in a database. So I need to pass the textbox value...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.