In my database, I import a table from excel, then put it into a report. The report sorts the data according to sub headings. Then, if one item in a sub heading is the same as the next one, both of the items are highlighted. eg
Serial # 123
Unit # 14
Unit # 14
Both of the 14's should be highlighted. Is there a way to code this in VBA? I think that all I need is how to compare the first item to the second item
Serial # 123
Unit # 14
Unit # 14
Both of the 14's should be highlighted. Is there a way to code this in VBA? I think that all I need is how to compare the first item to the second item