473,385 Members | 1,769 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.

Conditional Formatting question?

First, let me say that I know only the basics in Access 2003 and use mostly the provided GUI controls to accomplish my tasks. Second, I have no previous coding experience at all! Thanks for being here and helping those of us who lack the knowledge and skills!!!

Background:
Tables-
1. Jobs
(a)JobsID (PK)
(b)JobsCompleted (Checkbox)
2. Job Tasks
(a)JobTaskID (PK)
3. Job Tasks Assigned to Jobs (Linked Table)
Self Explanatory

I have a main form that allows you to select the job. i have a subform that shows the Job Tasks associated to that Job. I built a query to search for only Job Tasks that are associated with completed Jobs and it works fine. I place a second subform displaying only the JobTaskID field from the query results in datasheet view and hide it. Added a conditional format to the first subform (JobTaskID)to change the text color if it was equal to any results from the query in the hidden subform. As you can image, the Access limitation smacked me in the face. It seems to be only looking at the first record and not all the records in the hidden subform. Is there a way to force Access to evaluate all the records? This is driving me crazy! Thanks for any help you can provide...
Lost
Jun 18 '10 #1
4 1941
TheSmileyCoder
2,322 Expert Mod 2GB
Hi and Welcome to Bytes!

While you may find it in-convenient that is the way Access works. You could make code to loop through the recordset attached to the subform but there are smarter ways of doing it.

If you could post the SQL behind the visible subform, Im confident we can work something out.
Jun 18 '10 #2
Thank you for the quick response! I'm not sure how to post "the SQL behind the visible subform?" When I opened the DB and tried to view SQL, the option was not available. The Code icon showed nothing as well for the subform. Sorry for being so new at this!
Jun 18 '10 #3
TheSmileyCoder
2,322 Expert Mod 2GB
Assuming you know the query window and how to get to it, you should be able to select View->SQL view and then see the SQL syntax of the query. Copy & paste it here.
Jun 18 '10 #4
jimatqsi
1,271 Expert 1GB
Have you filled in the Parent/Child linkage on the hidden subform? If you do that, then the hidden subform will ONLY have records that link to the current JobsID. So you won't get extraneous records on that form. You have only to test to see if the JobTaskID on the subform is null or not. If it is not null then there is at least one matching record on that subform.

Jim
Jun 18 '10 #5

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

Similar topics

3
by: Jouke Langhout | last post by:
Hello all! For quite some time now, I've got the following problem: Access won't close properly when a user closes the application. An ACCESS process stays active and that process can only be...
4
by: Bradley | last post by:
I have an A2000 database in which I have a continuous form with a tick box. There is also a text box with a conditional format that is based on the expression , if it's true then change the...
8
by: Dimitri Furman | last post by:
Given: Access 2002/2003 A subform in datasheet or continuous view, placed on a tab page (this last may or may not matter) Conditional formatting applied to some controls on the subform - format...
2
by: Von Bailey | last post by:
I have a form where the conditional formatting is set on some fields to bold if certain conditions are met. However, when the conditions are met some of the data that is to bold is either not...
1
by: GGerard | last post by:
Hello Is there a way to use a variable in the Conditional Formatting of a Textbox? Example : I want the background of a textbox in a continuous form to change color when the value of...
8
by: Typehigh | last post by:
I have many text fields with conditional formatting applied, specifically when the condition is "Field Has Focus". Without any events associated with the fields the conditional formatting works...
4
by: midlothian | last post by:
Hello, I have conditional formatting set up on a subform based on a calculated value in the underlying query. For instance, if Sales are >$1000, the query displays "Yes," otherwise it displays...
1
by: dddsssdddsss | last post by:
A comment and a question To anyone who is using conditional formatting, beware that in Access 2007 the color pallette is not the same as the color pallette in Access 2003. So if you have a...
3
by: ConfusedMay | last post by:
Hi, I have a quick question. Is there an option for conditional formatting in access 97? or is it only for access 2000 or higher? I need to change font color in access 97 report depending on the...
10
by: Lyn | last post by:
Hi, I would like to make a bound text box not visible if it is empty (not just disable it). This option is not available from the standard conditional formatting feature (at least, not that I can...
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: 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?
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
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
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,...

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.