Sandy,
use a dlookup to get the value for the unbound field.
set its control source =DLookup( "[MaxOfDelDate]", "NameOfQuery",
strCriteria)
build the strCriteria using the fields that uniquely identify the record on
your form.
Check out vba help on Dlookup.
Jeanette Cunningham -- Melbourne Victoria Australia
>I have a query (which is based on a sub query) as follows:
>
[quoted text clipped - 15 lines]
> thanks
> sandra
Sandy - 03 May 2008 17:28 GMT
Thanks, Jeanette - this worked perfectly.
I used
= DLookup( "[MaxOfDelDate]", "NameOfQuery")
with no criteria as that was already defined in the query, which returns
only one record and one field
:-)
s-
> Sandy,
> use a dlookup to get the value for the unbound field.
[quoted text clipped - 25 lines]
> > thanks
> > sandra