INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Highlight select records on a sub-form.

Highlight select records on a sub-form.

(OP)
I am trying to highlight select records on a sub-form. I can easily create code to change a background color or make an object visible to mark a record. I am trying to figure out to trigger the code for some records but not others.

RE: Highlight select records on a sub-form.

First question, I guess, is are you trying to do this by manually selecting the Records to hi-lite...or doing this based on some condition?

Hope this helps!

There's always more than one way to skin a cat!

All posts/responses based on Access 2003/2007

RE: Highlight select records on a sub-form.

There are two ways to "select records". You can but a field in the table or create a separate table of selected records. In the first case you select or deselect a field. In the second case you add or remove values from a table. The first case is easier to do the second is more flexible.

RE: Highlight select records on a sub-form.

(OP)
At present I am working off of a calculated field in a query for my subform, as follows:

IsShipped: Not IsNull([DateShipped])

This can be displayed by a checkbox, which is acceptable. However, I would like to have additional highlighting. Also, the checkmark does not display until I click on the Refresh All button. So either way I do have an issue. I have tried several different ways to refresh my form and sub-form by using VBA code, but so far no luck.

I should also mention that I am presently working on a Chrome machine.

RE: Highlight select records on a sub-form.

Depends on what you want to highlight, but if it is a continuous form you can do this through conditional formatting. You will be limited to 3 colors/formats and the default. If it is not a continuous form you can use code to do more. To refresh your form use me.recalc in the on current event and/or after update event of your dateshipped field

RE: Highlight select records on a sub-form.

MS Access on the Chrome OS? I didn't think this was possible.

Did you look into Conditional Formatting? I doubt you need to use any code.

Duane
Hook'D on Access
MS Access MVP

RE: Highlight select records on a sub-form.

(OP)
Actually I am using the Chrome Remote Desktop to access a Windows environment with Microsoft Office.

Good point about the conditional formatting. But that can only be done for individual objects rather than the detail section as a whole. So a checkbox works just fine. As long as it refreshes to show a check mark when a line item has been shipped.

RE: Highlight select records on a sub-form.

Quote:

But that can only be done for individual objects rather than the detail section as a whole.
You may be able to fake this depending on what effect you want. This is a textbox behind the textboxes.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close