Highlight row

KenHigg

Registered User
Local time
Yesterday, 22:40
Joined
Jun 9, 2004
Messages
13,327
I have a subform displaying multiple rows and what I need is to have it when a user selects a row (by clicking on the row selector or otherwise), the entire row high-lights so that the data is easy to read as it goes accross - Any ideas?

Thanks,
 
Ken:
In a datasheet you can use this...
Code:
Private Sub Form_Current()
   DoCmd.RunCommand acCmdSelectRecord
End Sub
Mark
 
I would like to do the same thing but I'm confused how to use this (I am using Access 97 but it also seems to work in 2003.) I have a subform and I would like to highlight the row that the user clicks into. Which section of the subform (OnLoad? OnOpen? etc.) do I enter this code? I tried it in OnLoad and it highlight the first row, but doesn't highlight the row that I next click.
 
Try the on got focus event of each field that the user can click then use the DoCmd.RunCommand acCmdSelectRecord.
 
i dont think you can do this in a continuous form.

each row has the same formatting/display properties
 

Users who are viewing this thread

Back
Top Bottom