dbTalk Databases Forums  

A nudge please...

comp.databases.ms-access comp.databases.ms-access


Discuss A nudge please... in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Bob Barrows
 
Posts: n/a

Default Re: A nudge please... - 10-08-2011 , 02:26 AM






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.

Reply With Quote
  #12  
Old   
Vacuum Sealed
 
Posts: n/a

Default Re: A nudge please... - 10-08-2011 , 10:50 AM






Bob

I took on board what you were trying to tell me.

Rather than trying to get the DMax to run the way of my OP, I decided to
chuck on a ListBox and set it's RecordSource via the QBE and set the BreedID
to MAX and hey-presto, full list of all breed category's and their
respective last numbers used as opposed to a single selection from the user.

This is visually heaps better as it updates automatically too as soon as the
user adds a new breed.

I truly appreciate how frustrating it must have been for you to get me to
understand your line of thinking and I thank you for your patience.

Cheers
Mick.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.