Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Highlighting Duplicate Records in a Continuous Form

Status
Not open for further replies.

StooPot

MIS
Dec 17, 2003
4
GB
I have a Continuous Form which I have formated to look like an excel spread sheet. I need to highlight the records which have duplicate Delivery Notes.

My fields are as follows

InvCode | DelCode | Ship# | InvNumber | InvDate | DelNote |
-----------------------------------------------------------

I though about writing an expression in Conditional formating e.g.
previous ([DelNote])=[Delnote]

But this does not work! if any body could help it would be much appreciative.

Thank You.....
 
Hallo,

The expression for the conditional formatting should be:
DCount("*","form recordsource table or query name","[DelNote]=" & Me![DelNote]) > 1
if DelNote is Numeric, or
DCount("*","form recordsource table or query name","[DelNote]='" & Me![DelNote] & "'") > 1
if DelNote is a text field.

Since this has to search the whole recordsource for every record it will take ages. You may be able to use recordsetclone within the code to make it quicker, I don't know offhand,

- Frink
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top