G
Guest
I have a subform displaying consequtive records based on a query where I want to change background color of each subform row (or more exact selected text controls of the individual rows) depending on some properties of the records shown. When I try to do this in VBA ALL rows are affected because I cannot find a way to refer to an individual row of the subform. The VBA-routine
If StrComp(Text20, Text14, 1) <> 0 The
Text14.BackColor = RGB(255, 0, 0
Els
Text14.BackColor = RGB(255, 255, 255
End I
seems to refer to ALL rows (change color of all rows at the same time) displayed in the form
How can I refer to an individual row in this aspect ?
If StrComp(Text20, Text14, 1) <> 0 The
Text14.BackColor = RGB(255, 0, 0
Els
Text14.BackColor = RGB(255, 255, 255
End I
seems to refer to ALL rows (change color of all rows at the same time) displayed in the form
How can I refer to an individual row in this aspect ?