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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete Duplicate Entires

Status
Not open for further replies.
May 31, 2000
34
US
I'm using this formula to delete dup entires after creating a new entry. It is supposed to delete entires if they have the same UnitSerialNumber if it is the same as the current document, yet it doesn't work. Can we fix this one? or is there a better way?

@Command([Compose];"IC");
list := @DbLookup("Notes"; "NoCache"; "ICView"; "UnitSerialNumber"; "Date");
biggest := @Subset(list; -1) - [01/01/2001 01:01:01 AM];
current := Date - [01/01/2001 01:01:01 AM];
@If(current = biggest; ""; @DeleteDocument);
@All
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top