change background color of a record in a form (1 Viewer)

joeserrone

The cat of the cul-de-sac
Local time
Yesterday, 19:11
Joined
Dec 17, 2006
Messages
164
Hello everyone,
I have a tabular form that displays records from a query, when a user doubleclicks on a record a second more in depth form appears. What I wanted to do is give the user a visual reference to what records were viewed and which ones were not. So I thought I would place me.nameofTextBox.backcolor = 8421504
but I realized that it changes all the background colors of all the records. Is there a way to change the background color just for the record selected in the form?
 

ajetrumpet

Banned
Local time
Yesterday, 18:11
Joined
Jun 22, 2007
Messages
5,638
if there are users scrolling through the records and clicking the details of everyone, and you want to show which ones were opened on a detailed basis, then maybe you could pick out a unique value from each record, and the control that those values are stored in, record those values in VBA (maybe an array?) when each record is viewed in detail, and then use the OnCurrent() event of the form to check weather or not the boxes contain those values of records that have been viewed in detail ?

This is a little complicated, but it would get done what you want to get done..
 

Users who are viewing this thread

Top Bottom