Sometimes I’m asked to write code to find records in long tables with non-unique Keys. DGET with its access to a Criteria Table would be ideal except that it returns the value of a column and must be unique, ie only one row matches the criteria. Is there any clever and efficient way to get the row number instead? The ideal functionality would be something like
MyDGet(database,field,criteria,startrow)
where the first three arguments are as in DGET and the fourth indicates from where the search should start, thus allowing for multiple instances. I do most of my coding in the Macro 4 language and would very much appreciate assistance if VB is required.
Geoffrey Howell