473,508 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

changing control formating if it's value changed in form

3 New Member
hi to you all
am trying make the control formatting changes when changing it's value to keep track of what controls i've changed in the form,wither it was a combobox or textbox .
i had this idea of making the control checks the value in the table's field which is bounded to,so if they are not equal,so i tried Conditional Formatting using the "not equal to" and point it to the field in the table which is the control is bounded to , didn't work,and in the expression mode typing "<>" with the same previous pointing,got the same result
any other ideas ?
thank you
Mar 15 '16 #1
3 915
NeoPa
32,557 Recognized Expert Moderator MVP
That's a good idea, but can't work as you have nothing to compare the value with. VBA gives you access to the .OldValue, but Conditional Formatting is not run in VBA.

What you may be able to get working is some code in the AfterUpdate event procedures of all controls that compare the .Value with the .OldValue and set the background colour accordingly.
Mar 16 '16 #2
ccoldfire
3 New Member
That exactly what i did,thank you
Mar 16 '16 #3
NeoPa
32,557 Recognized Expert Moderator MVP
It was a pleasure and I'm very pleased you were able to work with it.

I would recommend that each event procedure calls a (single) separate procedure that does the main work, and that this has a parameter indicating which control has been updated. Far tidier than loads of copies of the same code.
Mar 16 '16 #4

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

Similar topics

4
4092
by: mitch-co2 | last post by:
What I am trying to do is when someone clicks on the YES radio button I want the text field called MYTEXT to equal the text field named DATE. The below code works as long as I do NOT UN-COMMENT...
2
4966
by: Karl Irvin | last post by:
In continous form is there a way to tell the name of the currently highlighted control and its value?
3
2111
by: MS | last post by:
What's the best way to "store" and display a value in a text box that changes from day to day. An example of this would be where the name of the user is manually typed in after using the datbase,...
1
6707
by: Omar Llanos | last post by:
How can I change the background color of an MDI form? I read in msdn that it takes the background of windows (and not the BackColor) but I wanted to really make sure. I know that in VC it can be...
6
6863
by: AMP | last post by:
Hello, I have an mdi program with a child form ("A") and another child ("B"). I want to change the text of a label on A by changing an item from a combobox on B. I can code the...
3
1427
by: Netter | last post by:
I made a usercontrol (a couple of years ago). Actually it is a calculator with lots of little buttons. I have the control on a form. When I view the form in the IDE (or when running) the...
7
4144
by: Mahmoud Al-Qudsi | last post by:
I have a list of strings that refer to various controls on a form. They're not all the same type, they are all unique. How can I say (Control)StringList.text = "mytext" Basically, set the...
7
5252
by: laredotornado | last post by:
Hi, Using the onblur handler in a text field, how can I check if the value was changed from what was originally there prior to the user focussing on the text field? Thanks, - Dave
2
1366
by: flap152 | last post by:
I'm trying to build a collection of a few controls (a subset of controls from a report in Access) for later use in a foreach statement Dim ControlList1 As New Collection ' to hold controls for...
0
1182
by: Tim F | last post by:
Hi all, I have been scratching my head over this one for a day now! I have a word 2007 document with 2 user forms, Form1 and Form2. Form2 is activated from Form1 and should let the user select a...
0
7225
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
7123
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
7326
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
7383
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...
1
7046
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
5627
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,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.