Vacuum Sealed wrote:
Quote:
Bob
When applying either suggestion:
=Dmax("BreedID","tblBreeds","Category=" & Forms!frmBreeds!txtCategory
)
or
=Dmax("BreedID","tblBreeds","Category='" &
Forms!frmBreeds!txtCategory & "'")
The conrolfield in question flickers as though it is searching for the
result in an endless loop but not actually finding it..
I may just scrap the idea and use a query rather than extracting it
directly from the table. |
Err, that's what a Domain function does ...
Quote:
Appreciate your patience.
Mick. |
You still haven't shown us the hatd-coded sql statement that returns the
desired result for a specific Category. I repeat: open the query builder and
create the the query with a hard-coded value for the category (rather than
attempting to use the value entered in the form). Once you have that query
working, show us the sql. Why is this so hard for you to do for us?
I am suspecting you used one of those "lookup" fields for the Category in
the tblBreeds design and that is what is screwing you up, but I will not
know for sure. Seeing a hard-coded sql statement will remove or confirm that
doubt. Better yet, look at the design of that field in the table's Design
View and let us know if it's looking up values in another table. If so, let
the group know. They will advise you how to deal with it.
Anyways, I am leaving to go on a business trip now and someone else will
have to pick this up.