Here is the Conditional Formatting screen
Main Topics
Browse All TopicsI have a popup form that can have several records related to the parent form. Every record has an OK command button beside it. When I press my OK command button, it copies the information for that record to the parent form. The popup form stays open until the Close command button is pressed. I need some way to indicate that a record has been picked so the user doesn't accidentally click it again. Once the popup form is closed, the form formatting should go back to normal.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
bwestly:
Try the download at this link - it can be utilized for continuous form as well:
http://www.rogersaccesslib
Neat samples here as well:
http://www.lebans.com/cond
JeffCoachman
All these samples are really cool, but I can't seem to get them to work with what I"m doing. I made the txtBackfill box around my controls, but when I press my OK command, all of the rows change.
When I click on OK it writes the information back to my form using:
sql = sql & " WHERE (((RepairScopes.scope_id)=
Therefore, I thought I could use these 2 controls to change txtBackfill as well but only for that row.
I'm going to try adding a tickbox to the row and see if I can follow bobby6055's click14 example.
I think where my problem lies is that I have stacked subforms and I need the popup to compare a field to the form before.
i.e. Parent frmSpec
Subform frmComponents
Subform frmScope
Popup form frmrepairscopepopup
When I pick an item from the popup it populates frmScope. If that item is already on frmScope it comes back with a message to tell me that it's already there. The users ALSO want to have the continuous form highlight that they have already used this item.
I'm attaching the code I use to tell it that the item already exists in case it helps.
I got it working now. I got the final "key" from Bytes.com.
I followed Helen's instructions which then worked to highlight the current record I was on, but not records that were already used. I tied my qryScopesUsed to my Form Source and then bound the txtScope_ID that Helen had instructed me to put on the header. Then I put the [scope_id] = [txtscope_id] on the Form_Current and Form_Open. It then highlighted only the records that had been used. When I click on an used record, it highlights that one as well.
Here is what Bytes.com instructed:
1. The control to be conditionally formatted on the continuous form must be bound to a field in the table. If it is unbound, bind it by adding a field to your table for this purpose, or you will continue to show red for all records like you do now..
2. Place the subform in design view
3. Highlight the control that will be conditionally formatted.
4. Go to command menu and select Format>Conditiional Formatting
5. for condition1 first textbox select: Expression is
6 Second texbox enter" Your Conditional expression
7. preview of format textbox: select the red background color that you want formatted control to be when condition is met
8. Click ok button and test.
Thank you, everyone for your help.
Business Accounts
Answer for Membership
by: Helen_FeddemaPosted on 2009-08-14 at 14:35:35ID: 25102558
You could a modified version of a technique I use to highlight the current row in a continuous forms-type subform. Conditional formatting is used, with a back color applied (to a large textbox behind the other controls) if the value in a control on the subform matches a value in the form header. In your case, an unbound textbox in the popup form header could have a control source matching the key field in the main form.
Here is a description from my Access Archon article on this topic (which is attached, with the sample database):
The back color change is done using the Conditional Formatting feature introduced in Access 2000. Form sections don't support this feature, so I placed a large textbox control in the Detail section, behind the other controls, with Tab Stop set to No, and Locked to Yes (so the user can't click on it to give it focus, which would hide the other controls). I right-clicked the txtBackfill textbox, and selected Conditional Formatting from the context menu, to open the Conditional Formatting dialog. I selected Expression Is in the drop-down list, and entered the expression shown, which evaluates to True for the row that matches the combo box selection; I then selected the color from the color selector, and clicked OK.
Continuous form with back color