
Signature
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
Sigh, I'm such a n00b, all excellent questions, Jerry.
In the meantime I looked at the table and found a lot of instances where the
vendor cheq number had been initally entered without a date. So the records
returned later, on the Dlookup, contained a lot of "empties". I updated the
table, and now the code is working. Thanks, Jerry.
> How did it quit? Error message? Not updating things?
>
[quoted text clipped - 29 lines]
> >
> > Thanks.
Pat Hartman (MVP) - 26 Feb 2007 21:34 GMT
This makes me think that you are using the wrong function. The Dlookup()
function will return an ARBITRARY record when multiple records match the
selection criteria - check the help entry for details since you may not be
getting what you expect in all cases.
If you are interested in the most recent date for a check number, you should
be using DMax().
> Sigh, I'm such a n00b, all excellent questions, Jerry.
>
[quoted text clipped - 43 lines]
>> >
>> > Thanks.